jpackage: support for environment variables in --java-options
mik3hall at gmail.com
Mon Aug 31 20:14:17 UTC 2020
> On Aug 31, 2020, at 3:07 PM, Michael Hall <mik3hall at gmail.com> wrote:
>> On Aug 29, 2020, at 3:37 AM, Serban Iordache <serban.iordache at gmail.com> wrote:
>> Is there a way to pass values from environment variables when using
>> 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?
> final String HOME = System.getProperty(“user.home”);
For user data these days don’t many platforms have preferred places for user data other than user home?
It has occurred to me it might be nice of java had an API that actually automatically gave you the correct directory for a given platform to put your data. Maybe different locations for different types of user data.
More information about the core-libs-dev