Set a property after you execute targetA - and then use an unless attribute
<target name = "targetA" unless "done">
<property name = "done" value = "true"/>
...
</target>
<target name = "targetB" depends = "targetA">
...
</target>
broken connection wrote:
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???
Thanks
On 11/12/07, Rick Genter <[EMAIL PROTECTED]> wrote:
From: broken connection [mailto:[EMAIL PROTECTED]
Sent: Monday, November 12, 2007 11:07 AM
To: Ant Users List
Subject: Re: Question about "depends" attribute in the target element
Thanks Rick,
But like Glenn specified if you add an extra target then
everything works
fine, please see below:
Yes, that's correct. There's nothing broken.
If you do "ant first third" first will be run twice. Each target on the
command line is invoked independent of the other targets on the command
line.
Ant is not make/gmake.
--
Rick Genter
Principal Software Engineer
Silverlink Communications
[EMAIL PROTECTED]
www.silverlink.com
Office (781) 425-5763
Mobile (781) 771-9677
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Scot P. Floess
27 Lake Royale
Louisburg, NC 27549
252-478-8087 (Home)
919-754-4592 (Work)
Chief Architect JPlate http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim