I wonder which of the following is a preferred approach?
We can set things up as APP_HOME=/path/to/file
(export
in .profile
or something along those lines) and access it as System.getenv("APP_HOME")
Or, alternatively using properties as -DAPP_HOME=/path/to/file
and access it as System.getProperty("APP_HOME")
Now .. either one will make the value available for the application stand point, but is either approach preferred? Why? When?