1 | <?xml version="1.0"?>
|
---|
2 |
|
---|
3 | <project name="Installation Build" default="" basedir=".">
|
---|
4 |
|
---|
5 | <property file="ant.install.properties"/>
|
---|
6 |
|
---|
7 |
|
---|
8 | <target name="default" depends="tgsrc">
|
---|
9 | <echo message="Entered Property [${myProperty}]"/>
|
---|
10 | <echo message="Checkbox Property [${isvalue}]"/>
|
---|
11 | <echo message="Colour selected [${colour}]"/>
|
---|
12 | <echo message="Installation Directory [${installDir}]"/>
|
---|
13 | <echo message="Web xml [${webxml}]"/>
|
---|
14 | <echo message="validated text [${validatedtext}]"/>
|
---|
15 | <echo message="unvalidated text [${unvalidatedtext}]"/>
|
---|
16 | <echo message="insecure password [${unsafepassword}]"/>
|
---|
17 | <echo message="lang [${lang}]"/>
|
---|
18 | <echo message="myProperty2 [${myProperty2}]"/>
|
---|
19 | <echo message="colour2 [${colour2}]"/>
|
---|
20 | <echo message="myProperty3 [${myProperty3}]"/>
|
---|
21 | <echo message="date.property [${date.property}]"/>
|
---|
22 | <echo message="colourtarget [${colourtarget}]"/>
|
---|
23 | </target>
|
---|
24 | <target name="tgsrc" depends="Source Sub Target">
|
---|
25 | <echo message="Installing Source files"/>
|
---|
26 | <sleep seconds="1"/>
|
---|
27 | </target>
|
---|
28 | <target name="tgbin" depends="">
|
---|
29 | <echo message="Installing Source files"/>
|
---|
30 | <sleep seconds="5"/>
|
---|
31 | </target>
|
---|
32 | <target name="cleanuptarget" depends="excessdep1,excessdep2,excessdep3,excessdep4,excessdep5,excessdep6,excessdep7,excessdep8">
|
---|
33 | <echo message="Clean up run at end it is added to the last page (the progress page)"/>
|
---|
34 | </target>
|
---|
35 |
|
---|
36 | <!-- Operating System Specific targets -->
|
---|
37 | <property environment="env."/>
|
---|
38 | <target name="myOsSpecific-linux" depends="">
|
---|
39 | <echo message="Should only run on Linux"/>
|
---|
40 | <sleep seconds="1"/>
|
---|
41 | </target>
|
---|
42 | <target name="myOsSpecific-mac" depends="">
|
---|
43 | <echo message="Should only run on Apple Mac"/>
|
---|
44 | <sleep seconds="1"/>
|
---|
45 | </target>
|
---|
46 | <target name="myOsSpecific-sun" depends="">
|
---|
47 | <echo message="Should only run on Sun OS or Solaris"/>
|
---|
48 | <sleep seconds="1"/>
|
---|
49 | </target>
|
---|
50 | <target name="myOsSpecific-win" depends="">
|
---|
51 | <echo message="Should only run on Windoze"/>
|
---|
52 | <sleep seconds="1"/>
|
---|
53 | </target>
|
---|
54 | <target name="myOsSpecific-other" depends="">
|
---|
55 | <echo message="Should run if none of the others run"/>
|
---|
56 | <sleep seconds="1"/>
|
---|
57 | </target>
|
---|
58 | <target name="tgt1" depends="dep1,dep2">
|
---|
59 | <echo message="TARGET ONE selected"/>
|
---|
60 | <sleep seconds="1"/>
|
---|
61 | </target>
|
---|
62 | <target name="tgt2" depends="">
|
---|
63 | <echo message="TARGET TWO selected"/>
|
---|
64 | <sleep seconds="1"/>
|
---|
65 | </target>
|
---|
66 | <target name="tgt3" depends="dep1,dep2">
|
---|
67 | <echo message="TARGET THREE selected"/>
|
---|
68 | <sleep seconds="1"/>
|
---|
69 | </target>
|
---|
70 | <target name="dep1" depends="">
|
---|
71 | <echo message="Dependency found"/>
|
---|
72 | <sleep seconds="1"/>
|
---|
73 | </target>
|
---|
74 | <target name="dep2" depends="">
|
---|
75 | <echo message="Dependency found"/>
|
---|
76 | <sleep seconds="1"/>
|
---|
77 | </target>
|
---|
78 | <target name="Source Sub Target" depends="">
|
---|
79 | <echo message="Dependency found"/>
|
---|
80 | <sleep seconds="1"/>
|
---|
81 | </target>
|
---|
82 | <target name="excessdep1" depends="">
|
---|
83 | <echo message="Dependency found"/>
|
---|
84 | <sleep seconds="1"/>
|
---|
85 | </target>
|
---|
86 | <target name="excessdep2" depends="">
|
---|
87 | <echo message="Dependency found"/>
|
---|
88 | <sleep seconds="1"/>
|
---|
89 | </target>
|
---|
90 | <target name="excessdep3" depends="">
|
---|
91 | <echo message="Dependency found"/>
|
---|
92 | <sleep seconds="1"/>
|
---|
93 | </target>
|
---|
94 | <target name="excessdep4" depends="">
|
---|
95 | <echo message="Dependency found"/>
|
---|
96 | <sleep seconds="1"/>
|
---|
97 | </target>
|
---|
98 | <target name="excessdep5" depends="">
|
---|
99 | <echo message="Dependency found"/>
|
---|
100 | <sleep seconds="1"/>
|
---|
101 | </target>
|
---|
102 | <target name="excessdep6" depends="">
|
---|
103 | <echo message="Dependency found"/>
|
---|
104 | <sleep seconds="1"/>
|
---|
105 | </target>
|
---|
106 | <target name="excessdep7" depends="">
|
---|
107 | <echo message="Dependency found"/>
|
---|
108 | <sleep seconds="1"/>
|
---|
109 | </target>
|
---|
110 | <target name="excessdep8" depends="">
|
---|
111 | <echo message="Dependency found"/>
|
---|
112 | <sleep seconds="1"/>
|
---|
113 | </target>
|
---|
114 |
|
---|
115 |
|
---|
116 | </project>
|
---|