cmds.add(new Mgmt(this));
}
- public static int timeout() {
+ public AuthzEnv env() {
+ return env;
+ }
+
+ public static int timeout() {
return TIMEOUT;
}
Thread.sleep((long)(delay+globalDelay));
}
} catch (Exception e) {
- if (expect.contains(-1)) {
+ if (expect.contains(-1)) {
pw.println(e.getMessage());
ret = -1;
} else {
} finally {
clearSingleLineProperties();
}
- rv = expect.isEmpty() ? true : expect.contains(ret);
+ rv = expect.isEmpty() || expect.contains(ret);
if (verbose) {
if (rv) {
pw.println();
String line;
while ((line = reader.readLine()) != null) {
- showDetails = (line.contains("-d"))?true:false;
+ showDetails = (line.contains("-d"));
if (line.equalsIgnoreCase("quit") || line.equalsIgnoreCase("q") || line.equalsIgnoreCase("exit")) {
break;