ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <ddevie...@gmail.com>
Subject Re: How to refer PATH environment variable in <exec> Ant task
Date Sat, 02 Dec 2006 20:01:16 GMT
>          <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@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message