Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Commit

Permalink
Don't strip leading - off of config file vmargs
Browse files Browse the repository at this point in the history
The writer for config.json only adds a - if one isn't present. This means to pass a vm arg such as --add-opens via the config it would require ---add-opens, which is strange. Instead, don't strip leading - at all from the config.
  • Loading branch information
Adam- committed Sep 11, 2021
1 parent 1e9a7fe commit 08a898e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/com/badlogicgames/packr/PackrConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,7 @@ private void readConfigJson(File configJson) throws IOException {
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);
}
this.vmArgs.add(vmArg);
}
}
if (json.get("minimizejre") != null) {
Expand Down

0 comments on commit 08a898e

Please sign in to comment.