fvarrui / JavaPackager

:package: Gradle/Maven plugin to package Java applications as native Windows, MacOS, or Linux executables and create installers for them.
GNU General Public License v3.0
1.04k stars 131 forks source link

add ability for default application arguments #305

Open red171 opened 1 year ago

red171 commented 1 year ago

I'm submitting a…

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:

fvarrui commented 1 year ago

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!!