executablePath = iter.next();
Log.log("executable path : " + executablePath);
}
+ } else if (arg.equals(OptionConstant.OPTION_TEST)) {
+ doTest = true;
} else if (arg.equals("-install")) {
if (iter.hasNext()) {
doInstallNoUI = true;
Log.err("-distribution requires distribution description");
throw new IMFatalException(OptionConstant.MSG_DISTRIBUTION_NOT_PROVIDED);
}
- } else if (arg.equals(OptionConstant.OPTION_TEST)) {
- doTest = true;
} else if (arg.equals("-removeOldSDK")) {
doRemoveOldSDK = true;
} else if (arg.equals("-property")) {
}
}
+ // set test
+ argIter = argArray.iterator();
+ while (argIter.hasNext()) {
+ if (argIter.next().equalsIgnoreCase("-test")) {
+ argIter.remove();
+ Options.doTest = true;
+ Log.log("Set to test working performance.");
+ }
+ }
+
argIter = argArray.iterator();
while (argIter.hasNext()) {
if (argIter.next().equalsIgnoreCase("-ni")) {
if (Platform.isLinux()) {
argIter = argArray.iterator();
while (argIter.hasNext()) {
- if (!argIter.next().equalsIgnoreCase("-passwd")) {
- throw new IMFatalException(ErrorCode.WRONG_OPTION);
- } else {
+ if (argIter.next().equalsIgnoreCase("-passwd")) {
argIter.remove();
if (argIter.hasNext()) {
suPass = argIter.next();
}
}
}
+ if (suPass == "") {
+ throw new IMFatalException(ErrorCode.WRONG_OPTION);
+ }
} else if (Platform.isWindows()) {
interactive = true;
} else if (Platform.isMacOS()) {