ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: Using Ant commands in a batch file; having problem; ant exits
Date Tue, 24 Oct 2006 08:46:16 GMT
Res Pons wrote:
> Hi everyone
> 
> I'm trying to run a batch file consisted of 3 or more lines below and cd 
> into different build folders of different projects and run a specific 
> ant target as listed below. But the problem is that after the first 
> instance of ant is run successfully, the batch file exits and the 
> subsequent batch commands don't get processed.  Is there any way to tell 
> ant not to exit the batch file and continue?
> 
> 
> 
> cd c:\workingFolder\proj1\build
> ant target
> 
> cd c:\workingFolder\proj2\build
> ant target
> 
> cd c:\workingFolder\proj2\build
> ant target
> 

ant.bat is itself a batch file.

to call one .bat file from another, you have to use the call command:


call ant target

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


Mime
View raw message