ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravi Roy" <>
Subject How to refer PATH environment variable in <exec> Ant task
Date Fri, 01 Dec 2006 15:26:05 GMT
Hi All,


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


<property environment="env" />


<target name="main">

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

             <env key="PATH" path="${env.PATH} />

ilters.txt,file=trace.trcxml com.mycomp.test.MyApp" />




or there is some limit in terms of maximum characters specified on the
command line ?


Thanks for pointers in advance!













  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message