> From: broken connection [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 12, 2007 11:11 AM
> To: Ant Users List
> Subject: Re: Question about "depends" attribute in the target element
> 
> Yeah,I apologize for that....but how can i resolve this guys???
> 
> I want targetA and targetB to be indepently called under this 
> scenario:
> targetA can be called independently...
> targetB always depends on targetA and should make sure 
> targetA is ran before
> it runs....
> 
> Any advice???

You'll need to structure your build something like this:

<target name="A" unless="A.has.already.run">
   <echo>I am target A</echo>
   <property name="A.has.already.run" value="true"/>
</target>

<target name="B" depends="A">
   <echo>I am target B</echo>
</target>

--
Rick Genter
Principal Software Engineer
Silverlink Communications
[EMAIL PROTECTED]
www.silverlink.com
Office (781) 425-5763
Mobile (781) 771-9677

This e-mail, including attachments, may include confidential and/or
proprietary information, and may only be used by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to