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

Fixes for argument handling in AshScriptPlugin's script template #1450

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

Conversation

kevinmehall
Copy link

  • Previously the -main argument was ignored because the custom_mainclass variable was set but never used. process_args is called after app_mainclass is set to the default value, so this PR makes it simply overwrite app_mainclass instead of introducing another variable.
  • Previously the additional arguments passed on the command line were passed to java before the defaults, which means the defaults take precedence and couldn't be overridden. This puts the flags from JAVA_OPTS and the command line after the defaults, which matches the behavior of the Bash template.

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.
@lightbend-cla-validator

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:

https://www.lightbend.com/contribute/cla

@lightbend-cla-validator

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:

https://www.lightbend.com/contribute/cla

Copy link
Contributor

@muuki88 muuki88 left a 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

@muuki88
Copy link
Contributor

muuki88 commented Aug 28, 2021

Can you sign the Contributor CLA?

@lightbend-cla-validator
Copy link

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:

https://www.lightbend.com/contribute/cla

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