Saturday, July 12, 2008

accessing system and environment vaiables in ant

Suppose you want to access your environment variable in your ant execution path.
You can do it like follows:
Access the environment using property tag of ant and then add the value of that variable to your path element.
<property environment="env">
<path>
<pathelement path="${env.PATH}:scripts">
</path>
</property>


Sphere: Related Content

0 comments: