Here is the way I was doing it so far: <project name=”projectA”> <target
name=”build” /> <target
name=”rebuild” /> <target
name=”compile>
<ifnot test=”${target::has-executed(‘build’) or
target::has-executed(‘rebuild’)}”>
<call target=”build” />
</ifnot> </target> <target
name=”test” depends=”compile” /> </project> The solution is not too difficult. I am more
curious as to whether there is a better way to do this. Thanks! -- Edwin From: McCullough, Gary
[mailto:[EMAIL PROTECTED] 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.) 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 |
RE: [Nant-users] Target depending on one of two other targets
Castro, Edwin Gabriel (Firing Systems Engr.) Thu, 16 Sep 2004 10:27:00 -0700
- RE: [Nant-users] Target depen... McCullough, Gary
- RE: [Nant-users] Target ... Castro, Edwin Gabriel (Firing Systems Engr.)
- RE: [Nant-users] Target ... Felice Vittoria
- RE: [Nant-users] Target ... Castro, Edwin Gabriel (Firing Systems Engr.)
- Re: [Nant-users] Tar... Troy Laurin