ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Calling a cmd batch file from Ant
Date Wed, 28 May 2008 07:41:54 GMT
> I am calling a dos batch file from an Ant script using the 
> following code :-
> 
> <property name="dos" location="c:/windows/system32/cmd.exe"/>
> 
> 
> <exec executable="${dos}" dir="c:/build/">
>           <arg value="CommonCommponent.bat"/>
> </exec>
> 
> On the assumption that I get the Microsoft Windows Copyright 
> info appear, I
> assume the above commands are running ok. The only trouble 
> is, the contents
> / commands in the batch file don't seen to get executed.


http://ant.apache.org/faq.html#batch-shell-execute


> Batch file contents are :-
> 
> set component=common
> ant -f %build.dir%/component.xml

Why not use <ant> ?


Jan

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


Mime
View raw message