ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Problem faced when using Ant
Date Thu, 02 Nov 2000 21:05:32 GMT
Ant will try to build the 'depends' targets in left-to-right order. If 
that's not what you want, or if your other targets have dependencies of 
their own, then you need to state that in your build file.

My guess is that what you want is something like:

<target name="MAIN" depends="WEBSERVER,DOCS,COMPILE,EJB,INIT"/>
<target name="WEBSERVER" depends="DOCS,COMPILE,EJB,INIT"/>
<target name="DOCS" depends="COMPILE,EJB,INIT"/>

Martin Cooper
Tumbleweed Communications

At 11:39 AM 11/2/00 -0800, shahnawaz Bagdadi wrote:

>Hi ,
>       I am using ant to build my stuff and am facing the following problem.
>My target is defined as follows in my build.xml file
>  <target name="MAIN" depends="WEBSERVER,DOCS,COMPILE,EJB,INIT">
>   </target>
>i am expecting the init target to be called first followed by 
>but it starts WEBSERVER directly and does not do the other target task.
>If any of you guys have any idea why this is happening , please throw some 
>light on it.
>Your help is appreciated,

View raw message