You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Anderson, Rob (Global Trade)" <Ro...@nike.com> on 2006/07/15 00:23:23 UTC

Running 2 ant commands in a windows .bat file, only first one executes

I have a simple windows batch file that is supposed to run 2 ant
commands like so...
 
ant -logger org.apache.tools.ant.listener.MailLogger -f
h:\temp\ant_batch\build.xml test1
ant -logger org.apache.tools.ant.listener.MailLogger -f
h:\temp\ant_batch\build.xml test2
 
When I run the script only the first ant command gets executed. Why?
What must I do to get both to run?
 
Thanks,
 

______________________
Robert Anderson
Sr. System Engineer
Nike - Global Trade IT
503-532-6803

Never let me slip, cuz if I slip, then I'm slippin. - Dr. Dre

 

RE: Running 2 ant commands in a windows .bat file, only first one executes

Posted by "Anderson, Rob (Global Trade)" <Ro...@nike.com>.
Perfect. Thanks, -Rob A 

> -----Original Message-----
> From: glenn opdycke-hansen [mailto:glennoph@gmail.com] 
> Sent: Friday, July 14, 2006 3:33 PM
> To: Ant Users List
> Subject: Re: Running 2 ant commands in a windows .bat file, 
> only first one executes
> 
> try calling ant (finally, a question i can answer!)
> see below
> 
> On 7/14/06, Anderson, Rob (Global Trade) 
> <Ro...@nike.com> wrote:
> >
> > I have a simple windows batch file that is supposed to run 2 ant
> > commands like so...
> >
> > call ant -logger org.apache.tools.ant.listener.MailLogger -f
> > h:\temp\ant_batch\build.xml test1
> > call ant -logger org.apache.tools.ant.listener.MailLogger -f
> > h:\temp\ant_batch\build.xml test2
> >
> > When I run the script only the first ant command gets executed. Why?
> > What must I do to get both to run?
> >
> > Thanks,
> >
> >
> > ______________________
> > Robert Anderson
> > Sr. System Engineer
> > Nike - Global Trade IT
> > 503-532-6803
> >
> > Never let me slip, cuz if I slip, then I'm slippin. - Dr. Dre
> >
> >
> >
> >
> 


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


Re: Running 2 ant commands in a windows .bat file, only first one executes

Posted by glenn opdycke-hansen <gl...@gmail.com>.
try calling ant (finally, a question i can answer!)
see below

On 7/14/06, Anderson, Rob (Global Trade) <Ro...@nike.com> wrote:
>
> I have a simple windows batch file that is supposed to run 2 ant
> commands like so...
>
> call ant -logger org.apache.tools.ant.listener.MailLogger -f
> h:\temp\ant_batch\build.xml test1
> call ant -logger org.apache.tools.ant.listener.MailLogger -f
> h:\temp\ant_batch\build.xml test2
>
> When I run the script only the first ant command gets executed. Why?
> What must I do to get both to run?
>
> Thanks,
>
>
> ______________________
> Robert Anderson
> Sr. System Engineer
> Nike - Global Trade IT
> 503-532-6803
>
> Never let me slip, cuz if I slip, then I'm slippin. - Dr. Dre
>
>
>
>