Does anyone have a list of environment variables that are common on Linux, Windows, and OSX that would enable cross-platform, consistent Apache Ant builds?
For example: On OSX you can specify env.HOME and perform file operations from the user’s home directory, /Users/michaelprescott. On Windows, env.HOME isn’t available. Instead, you have to specify env.HOMEDRIVE or env.HOMEPATH .
A lot of that is built into Java. Definitely check out user.dir and similar from System.getProperties() which Ant will use.
Here’s a list of some of the more interesting ones: