mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-24 21:35:15 +00:00
mvnd native executable is not passing -Dkey=val to the daemon #157
This commit is contained in:
@@ -122,6 +122,7 @@
|
||||
-H:IncludeResources=org/jboss/fuse/mvnd/.*
|
||||
-H:IncludeResources=org/jline/utils/.*
|
||||
-H:IncludeResources=org/fusesource/jansi/jansi.properties
|
||||
-H:-ParseRuntimeOptions
|
||||
</buildArgs>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
@@ -88,7 +88,6 @@ public class DefaultClient implements Client {
|
||||
boolean version = false;
|
||||
boolean showVersion = false;
|
||||
boolean debug = false;
|
||||
final Properties commandLineProperties = new Properties();
|
||||
for (String arg : argv) {
|
||||
switch (arg) {
|
||||
case "-v":
|
||||
@@ -111,9 +110,9 @@ public class DefaultClient implements Client {
|
||||
if (arg.startsWith("-D")) {
|
||||
final int eqPos = arg.indexOf('=');
|
||||
if (eqPos >= 0) {
|
||||
commandLineProperties.setProperty(arg.substring(2, eqPos), arg.substring(eqPos + 1));
|
||||
System.setProperty(arg.substring(2, eqPos), arg.substring(eqPos + 1));
|
||||
} else {
|
||||
commandLineProperties.setProperty(arg.substring(2), "");
|
||||
System.setProperty(arg.substring(2), "");
|
||||
}
|
||||
}
|
||||
args.add(arg);
|
||||
|
Reference in New Issue
Block a user