mvnd native executable is not passing -Dkey=val to the daemon #157

This commit is contained in:
Peter Palaga
2020-10-27 01:24:07 +01:00
parent 6e46188586
commit 59a9bbad5b
4 changed files with 22 additions and 10 deletions

View File

@@ -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>

View File

@@ -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);