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