ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From supareno <reno.rkc...@free.fr>
Subject Re: Invoking Ant with Runtime.exec()
Date Tue, 25 Mar 2008 23:08:35 GMT
raju,

it is more a java question than ant question
you could googling on 'using runtime exec ant bat' and 'runtime exec and 
parameters'...

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


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


Mime
View raw message