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: [Ant task] Calling different targets by passing it to a batch file
Date Mon, 22 Oct 2007 10:40:36 GMT
Im not sure why you are using the batchfile. So just two infos:
- %* is replaced by all batch arguments in a batch file 
- you can define a default target on <project>

Jan 

>-----Urspr√ľngliche Nachricht-----
>Von: Dharmesh Vyas [mailto:dharmesh.mail@gmail.com] 
>Gesendet: Donnerstag, 18. Oktober 2007 13:23
>An: Ant Users List
>Betreff: [Ant task] Calling different targets by passing it to 
>a batch file
>
>Hello,
>
>I have a batch file ABC.bat, which I use to set ant path and 
>run the build
>file.
>
>ABC.bat contents are somewhat like:
>rem Set Ant path over here
>ant -verbose -buildfile "RunBuild.xml" %1 -emacs
>
>I have few targets for e.g A, B, C, D in my build file 
>RunBuild.xml. These
>targets are my default target so if I call the build file without any
>arguments all of them gets called.
>
>Now I want to call only two of them. I tried it by doing 
>*ABC.bat "A B"*. It
>say that 'A B' does not exist in the project. Can somebody 
>please tell me
>how shall I implement it ? Or write it in a way that first 
>target A is run
>and then B.
>
>Thanks and Regards,
>- Dharmesh
>

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


Mime
View raw message