You could have your dependency projects set a property which your dependent could check.

 


Gary McCullough 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Castro, Edwin Gabriel (Firing Systems Engr.)
Sent: Thursday, September 16, 2004 12:36 PM
To: [EMAIL PROTECTED]
Subject: [Nant-users] Target depending on one of two other targets

 

Is there an easy way to have one target depend on one of two (or more) other targets?

 

I have a build file similar to the following:

 

<project name=”projectA”>

<target name=”build” />

<target name=”rebuild” />

<target name=”test” />

</project>

 

I would like my test target to make sure that either build or rebuild has been executed (I can set one as default if none has executed). I think in the past I had to use another target that ensured my dependency and I had test depend on this target.

 

--

Edwin

Reply via email to