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="">
|
---|
9 | </target>
|
---|
10 | <target name="tgsrc" depends="">
|
---|
11 | <echo message="Installing Source files"/>
|
---|
12 | </target>
|
---|
13 |
|
---|
14 | <!--
|
---|
15 | this is an example of the "funnies" of property and <target if=""/>
|
---|
16 | -->
|
---|
17 | <target name="runifpagerunornot" depends="tasksrunifpagerun">
|
---|
18 | <echo message="Independent of ifProperty"/>
|
---|
19 | </target>
|
---|
20 |
|
---|
21 | <!--
|
---|
22 | N.B. the property is set if use user passes the page and goes back and
|
---|
23 | changes the property, its too late the property is set
|
---|
24 | -->
|
---|
25 | <target name="antinstaller-setcondprop">
|
---|
26 | <antinstaller-property name="conditional.property" value="true"/>
|
---|
27 | <antinstaller-log message="***************setting property*****************"/>
|
---|
28 | <antinstaller-message message="setting property"/>
|
---|
29 | </target>
|
---|
30 | <target name="tasksrunifpagerun" if="conditional.property">
|
---|
31 | <!-- N.B. the target starts but the tasks are not run -->
|
---|
32 | <echo message="Dependent of ${test.number}-=2 : ${coditional.property}"/>
|
---|
33 | </target>
|
---|
34 |
|
---|
35 | <!-- simpler example that works -->
|
---|
36 | <target name="calledanyway" if="coditional.property">
|
---|
37 | <!-- N.B. the target starts but the tasks are not run -->
|
---|
38 | <echo message="Dependent of ${test.number}-=2 : ${coditional.property}"/>
|
---|
39 | </target>
|
---|
40 |
|
---|
41 | <target name="cleanuptarget" depends="">
|
---|
42 | <echo message="Clean up run at end it is added to the last page (the progress page)"/>
|
---|
43 | </target>
|
---|
44 |
|
---|
45 | <!-- Operating System Specific targets -->
|
---|
46 | <property environment="env."/>
|
---|
47 | <target name="myOsSpecific-linux" depends="">
|
---|
48 | <echo message="Should only run on Linux"/>
|
---|
49 | </target>
|
---|
50 | <target name="myOsSpecific-mac" depends="">
|
---|
51 | <echo message="Should only run on Apple Mac"/>
|
---|
52 | </target>
|
---|
53 | <target name="myOsSpecific-sun" depends="">
|
---|
54 | <echo message="Should only run on Sun OS or Solaris"/>
|
---|
55 | </target>
|
---|
56 | <target name="myOsSpecific-win" depends="">
|
---|
57 | <echo message="Should only run on Windoze"/>
|
---|
58 | </target>
|
---|
59 | <target name="myOsSpecific-other" depends="">
|
---|
60 | <echo message="Should run if none of the others run"/>
|
---|
61 | </target>
|
---|
62 | <target name="#FF0000" depends="">
|
---|
63 | <echo message="TARGET #FF0000 selected"/>
|
---|
64 | </target>
|
---|
65 | <target name="#00FF00" depends="">
|
---|
66 | <echo message="TARGET #00FF00 selected"/>
|
---|
67 | </target>
|
---|
68 | <target name="#0000FF" depends="">
|
---|
69 | <echo message="TARGET #0000FF selected"/>
|
---|
70 | </target>
|
---|
71 |
|
---|
72 |
|
---|
73 | </project>
|
---|