ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Taylor <donald_l_taylor...@yahoo.com>
Subject Re: cannot chain two consecutive ant calls inside a batch file
Date Tue, 24 Jul 2001 19:01:57 GMT
Try the 'call' command:

call ant -buildfile aaa.xml
dir *.log
call ant -buildfile bbb.xml

The problem is you're 'ant' is actually 'ant.bat', and when that batch
file terminates your console is terminated. By default batch files are
chained. The 'call' command stops that chaining.

-- Don

--- Val N <vniculae@netsystechnologies.com> wrote:
> Hi 
> I have a problem in that I cannot run two consecutive ant calls
> from within the same batch file 
> I am using Win2000
> 
> I have smth like "run_ant.bat":
> ::::::::::;
> ant -buildfile aaa.xml 
> dir *.log
> ant -buildfile bbb.xml 
> :::::::::::
> 
> Second call to [ant -buildfile bbb.xml]  is never reached; 
> in fact not even the [dir] call is reached; it seems that after the
> first 
> ant call, [ant] terminates the batch file altogether.
> 
> Anybody have any ideas of how to chain these ant calls in a batch
> file ?
> 
> Thanks in advance
> 
> Val N
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.263 / Virus Database: 135 - Release Date: 22/06/2001
> 


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Mime
View raw message