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 peter reilly
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

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@(protected)> 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@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

---------------------------------------------------------------------
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.