Fix duplicate Java arguments while processing

This commit is contained in:
khanhduytran0 2020-09-16 19:58:47 +07:00
parent 8331aeaf73
commit 9ab1afcf68

View file

@ -137,10 +137,9 @@ public final class Tools
String arg = overrideableArgList.get(i);
if (arg.startsWith("-D") && argOverride.startsWith(arg.substring(0, arg.indexOf('=') + 1))) {
overrideableArgList.set(i, argOverride);
System.out.println("ARGProcessor: Replace override arg: " + arg);
} else {
// break;
} else if (i+1 == overrideableArgList.size()) {
javaArgList.add(argOverride);
System.out.println("ARGProcessor: Add non-override arg: " + arg);
}
}
}