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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
<?xml version="1.0"?>
<project name="property-test" default="test1">
<target name="test1">
<property environment="testenv"/>
</target>
<target name="test2">
<property name="testprop1" value="aa"/>
<property file="property1.properties"/>
<echo message="testprop1=${testprop1}, testprop3=${testprop3}, testprop4=${testprop4}"/>
</target>
<target name="test3">
<property file="property2.properties"/>
</target>
<target name="testPropertyInFileShouldShadowExistingPropertyWithSameName">
<property name="http.port" value="999"/>
<property file="property3.properties"/>
<echo message="http.url is ${http.url}"/>
</target>
<target name="testOverrideExistingPropertyWithNewProperty">
<property name="http.port" value="999"/>
<property name="http.port" value="80" override="true" />
</target>
<target name="testOverrideExistingPropertyWithNewPropertyFromFile">
<property name="http.port" value="999" />
<property file="property3.properties" override="true"/>
</target>
<target name="prefix.success">
<property file="property3.properties" prefix="server1"/>
</target>
<target name="prefix.fail">
<property name="someprop" value="value" prefix="prefix"/>
</target>
<target name="testFilterChain">
<property name="filterchain.test" value="Hello">
<filterchain>
<replaceregexp>
<regexp pattern="Hello" replace="World" ignoreCase="true"/>
</replaceregexp>
</filterchain>
</property>
</target>
<taskdef name="hangdetectorproperty" classname="Phing\Test\Support\HangDetectorPropertyTask" />
<target name="testCircularDefinition1">
<property name="testprop2" value="${testprop1}" />
<hangdetectorproperty file="property2.properties"/>
</target>
<target name="testCircularDefinition2">
<hangdetectorproperty file="property_hang.properties"/>
</target>
<target name="testUsingPropertyTwiceInPropertyValueShouldNotThrowException">
<property file="property_notcircular.properties"/>
</target>
<target name="testToString">
<fileset id="sourcefiles" dir="././ext/" includes="**/*.bin"/>
<echo> sourcefiles = ${toString:sourcefiles} </echo>
</target>
<target name="testRequired">
<property file="foo.bar" required="true" />
</target>
</project>
|