[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] ANT and exec
|
ANT version 1.5
Running a batch file useing exec
the script shapes up similar to:
<exec dir="${library.filter.dir}" executable="myfile.bat">
<arg value="Path1;Path2"/>
</exec>
NOTE that "Path1;Path2" is a single argument and cannot be seperated.
inside myfile.bat:
c:\jdk1.3.1_06\bin\java com.myjava.tool %1
Running this from a DOS Command Prompt similar to:
myfile "path1;path2"
works, however I canot get this to run from the ANT script.
As it is written above the command line parses as"
myfile path1 path2
resulting in path2 not being found
I have tried
<arg value=""Path1;Path2""/>
which also fails to parse correctly.
Any ideas on how I can get this to work?
Thanks
David