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-03       - By Gilbert Rebhan
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Hi,

if nothing else works you may still go via =

<target name="main">
   <exec dir="..." executable="the/whole/path/to/java.exe">
<arg line="..." />
   </exec>

 </target>

Regards, Gilbert


Ravi Roy wrote:
>
> I want to refer the environment variable in created in Windows XP using
> <exec> Ant task, but it does not seem to refer that.
>
> My purpose is to run java.exe along with executing the application and
> referring ZIP/JARs by the application at execution time from the PATH
> variable.

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