source: other-projects/trunk/gs3-release-maker/apache-ant-1.6.5/src/etc/testcases/taskdefs/fail.xml@ 14627

Last change on this file since 14627 was 14627, checked in by oranfry, 17 years ago

initial import of the gs3-release-maker

File size: 2.1 KB
Line 
1<?xml version="1.0"?>
2
3<project name="fail-test" basedir="." default="test1">
4
5 <target name="test1">
6 <fail/>
7 </target>
8
9 <target name="test2">
10 <fail message="test2"/>
11 </target>
12
13 <target name="testText">
14 <fail>testText</fail>
15 </target>
16
17 <target name="testIf">
18 <fail if="foo" />
19 </target>
20
21 <target name="testUnless">
22 <fail unless="foo" />
23 </target>
24
25 <target name="testIfAndUnless">
26 <fail unless="unless" if="if"/>
27 </target>
28
29 <target name="testNested1" description="should fail with default message">
30 <fail>
31 <condition>
32 <and />
33 </condition>
34 </fail>
35 </target>
36
37 <target name="testNested2" description="should pass">
38 <fail>
39 <condition>
40 <or />
41 </condition>
42 </fail>
43 </target>
44
45 <target name="testNested3" description="should fail">
46 <fail message="testNested3">
47 <condition>
48 <and />
49 </condition>
50 </fail>
51 </target>
52
53 <target name="testNested4a" description="should error">
54 <fail if="if">
55 <condition>
56 <and />
57 </condition>
58 </fail>
59 </target>
60
61 <target name="testNested4b" description="should error">
62 <fail unless="unless">
63 <condition>
64 <and />
65 </condition>
66 </fail>
67 </target>
68
69 <target name="testNested4c" description="should error">
70 <fail if="if" unless="unless">
71 <condition>
72 <and />
73 </condition>
74 </fail>
75 </target>
76
77 <target name="testNested5" description="should error">
78 <fail>
79 <condition>
80 <or />
81 </condition>
82 <condition>
83 <and />
84 </condition>
85 </fail>
86 </target>
87
88 <target name="testNested6" description="should fail with message">
89 <fail>
90 <condition>
91 <and />
92 </condition>
93testNested6
94testNested6
95testNested6
96 </fail>
97 </target>
98
99 <target name="testNested7a" description="should error">
100 <fail>
101 <condition />
102 </fail>
103 </target>
104
105 <target name="testNested7b" description="should error">
106 <fail>
107 <condition>
108 <and />
109 <and />
110 </condition>
111 </fail>
112 </target>
113
114</project>
Note: See TracBrowser for help on using the repository browser.