ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sunil Prabhakaran" <sunilprabhaka...@gmail.com>
Subject Re: [Ant task] Calling different targets by passing it to a batch file
Date Wed, 24 Oct 2007 05:25:43 GMT
try this
change the batch file statement to

ant -buildfile "RunBuild.xml" %1 %2
and then execute
>ABC.bat A B at commandline and this should solve your troubles

Sunil Prabhakaran

On 10/22/07, Jan.Materne@rzf.fin-nrw.de <Jan.Materne@rzf.fin-nrw.de> wrote:
> 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
>
>

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


Mime
View raw message