Closed cervenf closed 3 years ago
Hey @ferinoc,
It looks like the Java code might only accept vmargs
all lowercase.
if (json.get("vmargs") != null) {
List<String> vmArgs = toStringArray(json.get("vmargs").asArray());
this.vmArgs = new ArrayList<>();
for (String vmArg : vmArgs) {
if (vmArg.startsWith("-")) {
this.vmArgs.add(vmArg.substring(1));
} else {
this.vmArgs.add(vmArg);
}
}
}
Hopefully that fixes the issue for you.
@karlsabo Thank you very much for good spot. Now it works :)
Thanks for letting me know it worked.
I have packr-config.json like this (with multiple vmArgs) :
and when I execute: java -jar packr-all-4.0.0.jar packr-config.json
it will generate json with empty vmArgs:
Did I miss something in packr-config.json please? Thank you.