Skip to content
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

add startScriptArgs setting #43

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

add startScriptArgs setting #43

wants to merge 2 commits into from

Conversation

rkuhn
Copy link

@rkuhn rkuhn commented Aug 24, 2013

This setting allows the build to specify a list of arguments to be
prepended to the command line arguments of the start script before
passing them on to the main class.

This setting allows the build to specify a list of arguments to be
prepended to the command line arguments of the start script before
passing them on to the main class.
@@ -319,12 +321,13 @@ java %JOPTS% -cp "@CLASSPATH@" "%MAINCLASS%" %*

@MAIN_CLASS_SETUP@

exec java $JAVA_OPTS -cp "@CLASSPATH@" "$MAINCLASS" "$@"
exec java $JAVA_OPTS -cp "@CLASSPATH@" "$MAINCLASS" @ARGS@ "$@"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since the args are passed through as-is (no quoting), people would have to do any quoting themselves, and separately for linux/mac and windows - should we auto-quote each arg for them? I know how to do that for unix but not Windows. The way we are doing classpath is bogus and doesn't handle backslashes or double quotes in the classpath, though we've gotten away with it so far.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh just saw below that you are doing double quotes

@havocp
Copy link
Contributor

havocp commented Aug 24, 2013

btw, do we need to coordinate with #40

@rkuhn
Copy link
Author

rkuhn commented Aug 26, 2013

fixed the quoting (and a bug)

@stig
Copy link

stig commented Nov 28, 2013

Any chance of this being merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants