source: release-kits/lirk3/resources/gs3-release-maker/apache-ant-1.6.5/src/etc/testcases/taskdefs/optional/echoproperties.xml@ 14982

Last change on this file since 14982 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

File size: 2.8 KB
Line 
1<project name="test" default="def" basedir=".">
2
3 <target name="def">
4 </target>
5
6 <target name="setup">
7 <property name="a.set" value="true" />
8 <property name="b.set" value="false" />
9 </target>
10
11 <target name="testEchoToLog" depends="setup">
12 <echoproperties />
13 </target>
14
15 <target name="testEchoToLogXml" depends="setup">
16 <echoproperties format="xml" />
17 </target>
18
19 <target name="testReadAndEchoToLog" depends="setup">
20 <echoproperties srcfile="echoproperties.properties" />
21 </target>
22
23 <target name="testReadBadFile" depends="setup">
24 <echoproperties srcfile="." />
25 </target>
26
27 <target name="testReadBadFileFail" depends="setup">
28 <echoproperties srcfile="." failonerror="yes" />
29 </target>
30
31 <target name="testReadBadFileNoFail" depends="setup">
32 <echoproperties srcfile="." failonerror="no" />
33 </target>
34
35 <target name="testEchoToBadFile" depends="setup">
36 <echoproperties destfile="." />
37 </target>
38
39 <target name="testEchoToBadFileFail" depends="setup">
40 <echoproperties destfile="." failonerror="yes" />
41 </target>
42
43 <target name="testEchoToBadFileNoFail" depends="setup">
44 <echoproperties destfile="." failonerror="no" />
45 </target>
46
47 <target name="testEchoToGoodFile" depends="setup">
48 <echoproperties destfile="test.properties" />
49 </target>
50
51 <target name="testEchoToGoodFileXml" depends="setup">
52 <echoproperties destfile="test.xml" format="xml" />
53 </target>
54
55 <target name="testEchoToGoodFileFail" depends="setup">
56 <echoproperties destfile="test.properties" failonerror="yes" />
57 </target>
58
59 <target name="testEchoToGoodFileNoFail" depends="setup">
60 <echoproperties destfile="test.properties" failonerror="no" />
61 </target>
62
63 <target name="testEchoPrefix" depends="setup">
64 <echoproperties destfile="test-prefix.properties" prefix="a." />
65 </target>
66
67 <target name="testEchoPrefixAsPropertyset" depends="setup">
68 <echoproperties destfile="test-prefix.properties">
69 <propertyset>
70 <propertyref prefix="a."/>
71 </propertyset>
72 </echoproperties>
73 </target>
74
75 <target name="testEchoPrefixAsNegatedPropertyset" depends="setup">
76 <echoproperties destfile="test-prefix.properties">
77 <propertyset negate="true">
78 <propertyref prefix="b."/>
79 </propertyset>
80 </echoproperties>
81 </target>
82
83 <target name="testEchoPrefixAsDoublyNegatedPropertyset" depends="setup">
84 <echoproperties destfile="test-prefix.properties">
85 <propertyset negate="true">
86 <propertyset negate="true">
87 <propertyref prefix="a."/>
88 </propertyset>
89 </propertyset>
90 </echoproperties>
91 </target>
92
93 <target name="cleanup">
94 <delete file="test.properties" failonerror="no" />
95 <delete file="test-prefix.properties" failonerror="no" />
96 <delete file="test.xml" failonerror="no" />
97 </target>
98
99</project>
100
Note: See TracBrowser for help on using the repository browser.