ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Rytov" <rry...@entopia.com>
Subject RE: Nested Builds Problem - Looks Weird
Date Mon, 22 Sep 2003 16:29:30 GMT
I bet you made a mistake. In your example I see no build_all at all. You
should make build_3 your default task.

___
RR

 

> -----Original Message-----
> From: DHAN, RAM [mailto:Ram.Dhan@cingular.com]
> Sent: Monday, September 22, 2003 7:19 PM
> To: user-help@ant.apache.org
> Cc: user@ant.apache.org
> Subject: Nested Builds Problem - Looks Weird
> 
> 
> Hi,
> 
> I have lot of build scripts in one directory. I have a build-all.xml 
> ant script in another directory and I am using 'ant' command to invoke

> them.
> This is how I am trying to invoke them.
> 
> 
> <project <project name="buildAll" default="build_all" >
> 
> <target name="build_1" description="Building 1">
> 	<ant antfile="commonScripts/build1.xml"/>
> </target>
> 
> <target name="build_2" depends="build_1" description="Building 2">
> 	<ant antfile="commonScripts/build2.xml"/>
> </target>
> 
> <target name="build_3" depends="build_2" description="Building 3">
> 	<ant antfile="commonScripts/build3.xml"/>
> </target>
> 
> </project>
> 
> I expect it to execute the targets build_1, build_2, build_3 one after

> the other.
> 
> BUT ant is exiting after "build_1" target is executed SUCCESSFULLY. It

> does not execute targets "build_2" or "build_1".
> 
> I am just wondering whats going wrong? Or is it that we cannot call 
> "ant"
> commands in various targets?
> 
> Thanks,
> Ramdhan YK
> 

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


Mime
View raw message