SHL-16 exit with twice enter

This commit is contained in:
Jarred Li
2012-04-12 15:02:27 +08:00
parent db68586afd
commit cb7f85b9b6
3 changed files with 19 additions and 5 deletions

View File

@@ -157,6 +157,7 @@ public abstract class JLineShell extends AbstractShell implements CommandMarker,
}, "Spring Roo JLine Shutdown Hook"));
// Handle any "execute-then-quit" operation
String rooArgs = System.getProperty("roo.args");
if (rooArgs != null && !"".equals(rooArgs)) {
setShellStatus(Status.USER_INPUT);
@@ -172,6 +173,7 @@ public abstract class JLineShell extends AbstractShell implements CommandMarker,
// Normal RPEL processing
promptLoop();
}
}
public String getStartupNotifications() {
@@ -430,11 +432,12 @@ public abstract class JLineShell extends AbstractShell implements CommandMarker,
}
executeCommand(line);
//System.out.println("executed command:" + line);
}
} catch (IOException ioe) {
throw new IllegalStateException("Shell line reading failure", ioe);
}
System.out.println("shuting down");
setShellStatus(Status.SHUTTING_DOWN);
}