-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JAVA_OPTS needs to be escaped #73
Comments
|
Then the bug must be elsewhere. Repro steps:
I have a service named
At the bottom that script contains these lines which seem to be where the bug is:
This must be used as part of the Gradle default start script task defined at https://github.com/palantir/gradle-java-distribution#packaging |
Ok, so it’s a bug in Gradle’s generated shell script. We could look at moving away from Gradle’s generated shell script, we probably want to do some things differently than it does anyway. |
@uschi2000 is tracking this one |
Resolved in #85. We have another couple of updates to make before releasing, but this has now been addressed. |
Especially important because Java convention for separating
http.nonProxyHosts
parameters is with pipes.Setting
JAVA_OPTS
to this would cause you very bad times:-Dhttp.nonProxyHosts=127.0.0.1|sudo\ rm\ -rf\ /opt
I think https://github.com/palantir/gradle-java-distribution/blob/8242c733c6f0ea5361bf9d6a4c59195d2073806e/gradlew#L161 needs to quote those parameters with double-quotes
The text was updated successfully, but these errors were encountered: