I have a question regarding Ant and its treatment of environment variables. To illustrate I have a small sample.
Given the Ant build file test.xml:
You need to read the test.props
property file after the environment - you could do so using another property
task, i.e. add
after your existing property environment
task.
In full:
When you supply the properties file on the command line this gets processed before the content of the build, but at that time ${env.MyEnvVar}
is not yet set.