add <arg> element to pass static argument to the application jar
Brought to you by:
grzegok
Hi
I need to pass a default argument to the wrapped jar (at compile time, not on the command line) as
-PATH %EXEDIR%
so that the generated command line be
Launcher args: -classpath "runtime\libs\es_launchers-5.4.1.jar" com.scort.es.launcher.Launcher -PATH C:\ProgramFiles\SCORT\ES-5.4.1
Thus I am proposing to add an XML element in the application group named <args> which will contains static arguments passed to the application like
<args>
<arg> -PATH %EXEDIR%</arg>
</args></args>
HI
I found a solution using <cmdline>-PATH $INSTALL_PATH</cmdline> that is working. You can close this issue.
Hi, I will keep it as right now launch4j does not substitute the internal vars like %EXEDIR% which a couple of users also requested.