Browse Source

behavior when property value is neither true nor false

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@821803 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 15 years ago
parent
commit
bf8a13577a
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      src/tests/antunit/taskdefs/fail-test.xml

+ 13
- 0
src/tests/antunit/taskdefs/fail-test.xml View File

@@ -27,6 +27,19 @@
<fail if="${if}"/>
</target>

<target name="testIfSet">
<property name="if" value="whatever"/>
<au:expectfailure>
<fail unless="${if}"/>
</au:expectfailure>
<fail if="${if}"/>

<fail unless="if"/>
<au:expectfailure>
<fail if="if"/>
</au:expectfailure>
</target>

<target name="testIfTrue">
<property name="if" value="true"/>
<fail unless="${if}"/>


Loading…
Cancel
Save