/
property.xml
56 lines (45 loc) · 1.6 KB
/
property.xml
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
<?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="test4">
<property name="http.port" value="999" />
<property file="property3.properties"/>
<echo message="http.url is ${http.url}"/>
</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="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>
</project>