mvn -Dmvnd.noBuffering=true has no effect #239

This commit is contained in:
Peter Palaga
2020-11-27 12:46:44 +01:00
parent 811620724d
commit 87cbcce9e4
2 changed files with 16 additions and 2 deletions

View File

@@ -71,6 +71,16 @@ public class DefaultClient implements Client {
} else {
throw new IllegalArgumentException("-l and --log-file need to be followed by a path");
}
} else if (arg.startsWith("-D")) {
/* This needs to be done very early, otherwise various DeamonParameters do not work properly */
final int eqPos = arg.indexOf('=');
if (eqPos >= 0) {
System.setProperty(arg.substring(2, eqPos), arg.substring(eqPos + 1));
} else {
System.setProperty(arg.substring(2), "");
}
args.add(arg);
} else {
if (!batchMode && ("-B".equals(arg) || "--batch-mode".equals(arg))) {
batchMode = true;