fix start-up loop

remove thread.sleep with proper methods
disable logging (seems to be broken on JDK 1.6.0_18 or higher)
some code cleanup
add debugging instructions for Eclipse
This commit is contained in:
Costin Leau
2012-07-12 11:01:17 +03:00
parent 3f0f29fd00
commit ac33f37e6f
6 changed files with 71 additions and 46 deletions

View File

@@ -454,7 +454,7 @@ public abstract class JLineShell extends AbstractShell implements CommandMarker,
String line;
try {
while (exitShellRequest == null && ((line = reader.readLine()) != null)) {
while (exitShellRequest == null && (reader != null && ((line = reader.readLine()) != null))) {
JLineLogHandler.resetMessageTracking();
setShellStatus(Status.USER_INPUT);