USER_HOME for the Grail on Windows

Does anyone know how to install USER_HOME on Windows so that when you create the application it will not be created inside Documents and Settings. I know how to override it inside the application, but I want to change it so that it defaults to a specific folder.

Thanks.

+3
source share
1 answer

By default, the user house is determined by the Java system property user.home. Using the following groovy code, you can get it:

System.getProperties ('user.home')

Using System.setProperty (key, value), you can set USER_HOME however you want.

+2
source

Source: https://habr.com/ru/post/1710763/


All Articles