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:[EMAIL PROTECTED] >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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
