I want to do something quite simple, but with Ant it seems really difficult.
I want to check a property BAR exists. If it is not set, then set it to
another property called FOO.
In shell:
FOO="blah"
if [ ! $BAR ]; then BAR=$FOO ; fi
echo $BAR $FOO
Right now I think I have to setup a separate target. Which is insane.
Because I would need to call it somehow if the condition isn't met.
I got this far:
<target name="init">
<condition property="isBARset">
<isset property="BAR" />
</condition>
<!-- how do I tastefully call THEN ?? -->
</target>
<target name="THEN" if="isBARset">
<property name="BAR" value="${FOO}" />
</target>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]