CK Developer Notes
24 November 2008
How to refer environment variables in ANT
We may have to access environment variables in our ANT build script. To do this, let us provide a handler to access the environment as below
<property environment="env"/>
Then you can refer any of the environment value like computer name on which the build script is run as below
<property name="destinationmachinename" value="dest.${env.COMPUTERNAME}"/>
Newer Post
Older Post
Home