How do I access environment variables within Ant?

Erik Hatcher

Using:

<property environment="env"/>
provides all environment variables as Ant properties prefixed by "env.". For example, CLASSPATH would be accessible in Ant as ${env.CLASSPATH}.
About | Sitemap | Contact