Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
How to refer PATH environment variable in <exec > Ant task

How to refer PATH environment variable in <exec > Ant task

2006-12-02       - By Dominique Devienne
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

>          <exec dir="${project.root}/classes" executable="java.exe">
>             <env key="PATH" path="${env.PATH}" />

Your pb is likely related to the case of the PATH env. var. Ant is
case sensitive, but on Windows PATH is not, and can be written Path or
path, or whatever. You also need to use the same case for your new
process than the current process' case for that variable, otherwise
strange things happen.

Lookup the archives for discussions from myself and Peter Reilly about
this. --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.