File: IsPropertyTrueFalseTest.xml

package info (click to toggle)
phing 3.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,368 kB
  • sloc: php: 59,821; xml: 9,767; sql: 78; makefile: 39; sh: 14
file content (29 lines) | stat: -rw-r--r-- 1,081 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0" encoding="UTF-8"?>
<project name="IsPropertyTrueFalseConditionTest" default="testIsPropertyTrue">
    <target name="testIsPropertyTrue">
        <property name="test.property.true" value="true"/>
        <condition property="IsTrue">
            <ispropertytrue property="test.property.true"/>
        </condition>
    </target>
    <target name="testIsPropertyNotTrue">
        <property name="test.property.true" value="false"/>
        <condition property="IsNotTrue">
            <ispropertytrue property="test.property.true"/>
        </condition>
    </target>

    <target name="testIsPropertyFalse">
        <property name="test.property.false" value="false"/>
        <condition property="IsFalse">
            <ispropertyfalse property="test.property.false"/>
        </condition>
    </target>
    <target name="testIsPropertyNotFalse">
        <property name="test2.property.false" value="true"/>
        <condition property="IsNotFalse">
            <ispropertyfalse property="test2.property.false"/>
        </condition>
    </target>

</project>