> On Aug 31, 2020, at 3:07 PM, Michael Hall <mik3h...@gmail.com> wrote:
> 
> 
> 
>> On Aug 29, 2020, at 3:37 AM, Serban Iordache <serban.iorda...@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”);

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.

Reply via email to