JavaPackager icon indicating copy to clipboard operation
JavaPackager copied to clipboard

add ability for default application arguments

Open red171 opened this issue 2 years ago • 1 comments

I'm submitting a…

  • [ ] bug report
  • [x] feature request
  • [ ] other

Short description of the issue/suggestion:

add ability to add (default) Arguments to JavaX

like

#if ($info.appArgs)
    <key>Arguments</key>
    <string>${info.appArgs}</string>
#end

and then

<configuration>
<appArgs>--withgui</appArgs>
</configuration>

in https://github.com/tofi86/universalJavaApplicationStub this was resolved by JVMArguments

at this moment, i duplicated the Info.plist.vtl for only 2 lines of code..

What is the motivation / use case for changing the behavior? in my case, my java application requires a argument to run in gui mode on macOS

Please tell us about your environment:

  • JavaPackager version: 1.7.0
  • OS version: macOS 13.2.1 (22D68)
  • JDK version: 11 & 17
  • Build tool:
    • [x] Maven
    • [ ] Gradle

red171 avatar Mar 10 '23 22:03 red171

Hi @red171! Great, I take note of your suggestion ... keep in mind that this feature should also be extended to Windows and Linux, but I'm sure it can be done. Thanks!!

fvarrui avatar Mar 11 '23 11:03 fvarrui