This is what I have:
<condition property="buildfailed">
<equals arg1="${buildresults}" arg2="failed"/>
</condition>
<target name="buildresults" unless="buildfailed">
<fail message="Check deploy script for error" />
</target>
If I am understanding this correctly then, the above should reference the
buildresults property that is held in a property file and if it is set to
failed...the script should fail. The issue is that when the buildresults is
set to successful, the build still fails.
Anyone see what I am doing wrong?
jpyork wrote:
>
> I have tried a few things today and still can't figure this out. I have a
> properties file with a setting of say test=successful and I want ant to
> check the property test to make sure it is set to successful before going
> on. How do I do this?
>
--
View this message in context:
http://www.nabble.com/Checking-a-property-with-ant-tp15051347p15095025.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]