Skip to content

Commit

Permalink
Fixed VM arg wrapping on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcashman committed Sep 16, 2018
1 parent ec48572 commit d8de00a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[1.3.1]
- Fixed VM arg wrapping on Linux

[1.3.0]
- Update to appbundler 1.1.0 to support OS X Sierra and higher

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath group: 'org.mini2Dx', name: 'parcl', version: '1.3.0'
classpath group: 'org.mini2Dx', name: 'parcl', version: '1.3.1'
}
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,13 @@ class LinuxBundleTask extends DefaultTask {

StringBuilder stringBuilder = new StringBuilder()
for(int i = 0; i < args.size(); i++) {
stringBuilder.append(args.get(i))
if(args.get(i).contains(" ")) {
stringBuilder.append('"')
stringBuilder.append(args.get(i))
stringBuilder.append('"')
} else {
stringBuilder.append(args.get(i))
}
if(i < args.size() - 1) {
stringBuilder.append(" ")
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.sh.template
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ else
fi


exec "$JAVA_COMMAND" "$VM_ARGS" -classpath "$CLASSPATH" "$MAIN_CLASS_NAME" "$APP_ARGS"
exec "$JAVA_COMMAND" $VM_ARGS -classpath "$CLASSPATH" "$MAIN_CLASS_NAME" $APP_ARGS

0 comments on commit d8de00a

Please sign in to comment.