On Wed, 22 Aug 2001, Jack Woehr <[EMAIL PROTECTED]> wrote:
> I'd like to do <if testproperty="some.prop" testvalue="doIt"
> trueantcall="some_target" falseantcall="another_target"/>
>
> What's the closes thing I can do to this in Ant?
<target name="check">
<condition property="testprop">
<equals arg1="${some.prop}" arg2="doIt" />
</condition>
</target>
<target name="some_target" depends="check" if="testprop" />
<target name="another_target" depends="check" unless="testprop" />
<target name="call-this" depends="some_target,another_target" />
Stefan