jpackage: support for environment variables in --java-options
Michael Hall
mik3hall at gmail.com
Mon Aug 31 20:07:17 UTC 2020
> On Aug 29, 2020, at 3:37 AM, Serban Iordache <serban.iordache at gmail.com> wrote:
>
> Hi,
>
> Is there a way to pass values from environment variables when using
> --java-options?
>
> It would be nice to be able to write something like this:
> --java-options "-DmyAppData=$HOME/.myData”
For this couldn’t you just pass the parameter without the path and then add it later?
-DmyAppData=/.myData
final String HOME = System.getProperty(“user.home”);
System.setProperty(“myAppData”,HOME+System.getProperty(myAppData),”.myData”);
More information about the core-libs-dev
mailing list