Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
shell - returning back on initial shell location after 'app run' exec…
…ution.

Particularly when we move to cached apps or srv directories during module descriptor resolution.
  • Loading branch information
fcamblor committed Sep 9, 2017
1 parent dca208d commit 85539e4
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -607,6 +607,7 @@ public RunAppCommandRunner(List<String> args) {

@Override
public void run(final RestxShell shell) throws Exception {
Path shellInitialLocation = shell.currentLocation();
if(appNameArg.isPresent()) {
shell.cd(standardCachedAppPath(appNameArg.get()));
}
Expand Down Expand Up @@ -691,6 +692,9 @@ public void run(final RestxShell shell) throws Exception {
.getComponent(AppSettings.class);
new ShellAppRunner(appSettings, appClassName, compileMode, quiet, daemon, vmOptions)
.run(shell);

// Moving back to initial location in case we either moved in cached apps or srv directory
shell.cd(shellInitialLocation);
}

private Optional<String> guessAppClassnameFromRestxModule(RestxShell shell) throws IOException {
Expand Down

0 comments on commit 85539e4

Please sign in to comment.