ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Reilly" <peter.kitt.rei...@gmail.com>
Subject Re: How to refer PATH environment variable in <exec> Ant task
Date Sat, 02 Dec 2006 21:08:02 GMT
Perhaps we could add an attribute to property
to force the env names to be uppercasized:
<property environment="env" upcase="yes"/>

so <echo>${env.PATH}</echo>
will always give the correct value

Peter

On 12/2/06, Dominique Devienne <ddevienne@gmail.com> wrote:
> >          <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
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message