ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raju <raju...@hotmail.com>
Subject Invoking Ant with Runtime.exec()
Date Tue, 25 Mar 2008 11:12:49 GMT

Hi,

i have a file called test.bat within which i have ant command:

test.bat:
---------
echo %foo% help
echo %ID% help
ant -f ./build.xml main


I am trying to invoke ant from a java program:
       
Process p = Runtime.getRuntime().exec("./test.bat", new
String[]{"foo=bar","ID=38"});

Ant command doesn't seem to be invoked.

Please let me know any suggestions/solutions if anyone has tried similar
thing.

Regards
Raj

-- 
View this message in context: http://www.nabble.com/Invoking-Ant-with-Runtime.exec%28%29-tp16273698p16273698.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Mime
View raw message