-
Notifications
You must be signed in to change notification settings - Fork 442
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
Fixes for argument handling in AshScriptPlugin's script template #1450
base: main
Are you sure you want to change the base?
Conversation
The `custom_mainclass` variable was set but never used. `process_args` is called after `app_mainclass` is set to the default value, so this can simply overwrite the variable.
This matches the behavior of the Bash template and allows overriding config file options on the command line.
Hi @kevinmehall, Thank you for your contribution! We really value the time you've taken to put this together. Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement: |
Hi @kevinmehall, Thank you for your contribution! We really value the time you've taken to put this together. Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome 😎 thanks a lot
Can you sign the Contributor CLA? |
Hi @kevinmehall, Thank you for your contribution! We really value the time you've taken to put this together. Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement: |
-main
argument was ignored because thecustom_mainclass
variable was set but never used.process_args
is called afterapp_mainclass
is set to the default value, so this PR makes it simply overwriteapp_mainclass
instead of introducing another variable.java
before the defaults, which means the defaults take precedence and couldn't be overridden. This puts the flags fromJAVA_OPTS
and the command line after the defaults, which matches the behavior of the Bash template.