Ticket #186: phing.bug186.xml

File phing.bug186.xml, 0.8 kB (added by Bruce Weirdan <weirdan@gmail.com>, 9 months ago)
Line 
1 <?xml version="1.0"?>
2 <project name="bug" default="final">
3     <property name="path1" value="1"/>
4
5         <target name="final" depends="path1, path2">
6         <echo>this executed unconditionally, at end of execution</echo>
7         </target>
8
9     <target name="path1" if="path1" depends="path1-prereq">
10         <echo>this should be executed, just after the path1-prereq</echo>
11     </target>
12
13     <target name="path1-prereq">
14         <echo>This should be executed, at start of execution</echo>
15     </target>
16
17     <target name="path2" unless="path1" depends="path2-prereq">
18         <echo>This should not be executed</echo>
19     </target>
20
21     <target name="path2-prereq">
22         <echo>This should not be executed as path2 does not get executed</echo>
23     </target>
24 </project>