|
1 <project name="Build specific targets and properties" default="noDefault"> |
|
2 |
|
3 <!-- ===================================================================== --> |
|
4 <!-- Run a given ${target} on all elements being built --> |
|
5 <!-- Add on <ant> task for each top level element being built. --> |
|
6 <!-- ===================================================================== --> |
|
7 <available property="allElementsFile" file="${builder}/allElements.xml" value="${builder}/allElements.xml"/> |
|
8 <property name="allElementsFile" location="${eclipse.pdebuild.templates}/headless-build/allElements.xml"/> |
|
9 |
|
10 <import file="${allElementsFile}" /> |
|
11 <target name="allElements"> |
|
12 <antcall target="allElementsDelegator" /> |
|
13 </target> |
|
14 |
|
15 <!-- ===================================================================== --> |
|
16 <!-- ===================================================================== --> |
|
17 <target name="getBaseComponents" depends="checkLocalBase" unless="skipBase"> |
|
18 <get src="${eclipseBaseURL}" dest="${buildDirectory}/../temp-base.zip" /> |
|
19 <unzip dest="${base}" overwrite="true" src="${buildDirectory}/../temp-base.zip" /> |
|
20 </target> |
|
21 |
|
22 <target name="checkLocalBase"> |
|
23 <available file="${base}" property="skipBase" /> |
|
24 </target> |
|
25 |
|
26 <!-- ===================================================================== --> |
|
27 <!-- Check out map files from correct repository --> |
|
28 <!-- Replace values for mapsCheckoutTag as desired. --> |
|
29 <!-- ===================================================================== --> |
|
30 <target name="getMapFiles" depends="checkLocalMaps" unless="skipMaps"> |
|
31 <property name="mapsCheckoutTag" value="HEAD" /> |
|
32 <cvs cvsRoot="${mapsRepo}" package="${mapsRoot}" dest="${buildDirectory}/maps" tag="${mapsCheckoutTag}" /> |
|
33 </target> |
|
34 |
|
35 <target name="checkLocalMaps"> |
|
36 <available property="skipMaps" file="${buildDirectory}/maps" /> |
|
37 </target> |
|
38 |
|
39 <target name="tagMapFiles" if="tagMaps"> |
|
40 <cvs dest="${buildDirectory}/maps/${mapsRoot}" command="tag ${mapsTagTag}" /> |
|
41 </target> |
|
42 |
|
43 <!-- ===================================================================== --> |
|
44 |
|
45 <target name="clean" unless="noclean"> |
|
46 <antcall target="allElements"> |
|
47 <param name="target" value="cleanElement" /> |
|
48 </antcall> |
|
49 </target> |
|
50 |
|
51 <target name="gatherLogs"> |
|
52 <mkdir dir="${buildDirectory}/${buildLabel}/compilelogs" /> |
|
53 <antcall target="allElements"> |
|
54 <param name="target" value="gatherLogs" /> |
|
55 </antcall> |
|
56 <unzip dest="${buildDirectory}/${buildLabel}/compilelogs" overwrite="true"> |
|
57 <fileset dir="${buildDirectory}/features"> |
|
58 <include name="**/*.log.zip" /> |
|
59 </fileset> |
|
60 </unzip> |
|
61 </target> |
|
62 |
|
63 <!-- ===================================================================== --> |
|
64 <!-- Steps to do before setup --> |
|
65 <!-- ===================================================================== --> |
|
66 <target name="preSetup"> |
|
67 </target> |
|
68 |
|
69 <!-- ===================================================================== --> |
|
70 <!-- Steps to do after setup but before starting the build proper --> |
|
71 <!-- ===================================================================== --> |
|
72 <target name="postSetup"> |
|
73 <antcall target="getBaseComponents" /> |
|
74 </target> |
|
75 |
|
76 <!-- ===================================================================== --> |
|
77 <!-- Steps to do before fetching the build elements --> |
|
78 <!-- ===================================================================== --> |
|
79 <target name="preFetch"> |
|
80 </target> |
|
81 |
|
82 <!-- ===================================================================== --> |
|
83 <!-- Steps to do after fetching the build elements --> |
|
84 <!-- ===================================================================== --> |
|
85 <target name="postFetch"> |
|
86 </target> |
|
87 |
|
88 <!-- ===================================================================== --> |
|
89 <!-- Steps to do before generating the build scripts. --> |
|
90 <!-- ===================================================================== --> |
|
91 <target name="preGenerate"> |
|
92 </target> |
|
93 |
|
94 <!-- ===================================================================== --> |
|
95 <!-- Steps to do after generating the build scripts. --> |
|
96 <!-- ===================================================================== --> |
|
97 <target name="postGenerate"> |
|
98 <antcall target="clean" /> |
|
99 </target> |
|
100 |
|
101 <!-- ===================================================================== --> |
|
102 <!-- Steps to do before running the build.xmls for the elements being built. --> |
|
103 <!-- ===================================================================== --> |
|
104 <target name="preProcess"> |
|
105 </target> |
|
106 |
|
107 <!-- ===================================================================== --> |
|
108 <!-- Steps to do after running the build.xmls for the elements being built. --> |
|
109 <!-- ===================================================================== --> |
|
110 <target name="postProcess"> |
|
111 </target> |
|
112 |
|
113 <!-- ===================================================================== --> |
|
114 <!-- Steps to do before running assemble. --> |
|
115 <!-- ===================================================================== --> |
|
116 <target name="preAssemble"> |
|
117 </target> |
|
118 |
|
119 <!-- ===================================================================== --> |
|
120 <!-- Steps to do after running assemble. --> |
|
121 <!-- ===================================================================== --> |
|
122 <target name="postAssemble"> |
|
123 </target> |
|
124 |
|
125 <!-- ===================================================================== --> |
|
126 <!-- Steps to do before running package. --> |
|
127 <!-- ===================================================================== --> |
|
128 <target name="prePackage"> |
|
129 </target> |
|
130 |
|
131 <!-- ===================================================================== --> |
|
132 <!-- Steps to do after running package. --> |
|
133 <!-- ===================================================================== --> |
|
134 <target name="postPackage"> |
|
135 </target> |
|
136 |
|
137 <!-- ===================================================================== --> |
|
138 <!-- Steps to do after the build is done. --> |
|
139 <!-- ===================================================================== --> |
|
140 <target name="postBuild"> |
|
141 <antcall target="gatherLogs" /> |
|
142 </target> |
|
143 |
|
144 <!-- ===================================================================== --> |
|
145 <!-- Steps to do to test the build results --> |
|
146 <!-- ===================================================================== --> |
|
147 <target name="test"> |
|
148 </target> |
|
149 |
|
150 <!-- ===================================================================== --> |
|
151 <!-- Steps to do to publish the build results --> |
|
152 <!-- ===================================================================== --> |
|
153 <target name="publish"> |
|
154 </target> |
|
155 |
|
156 <!-- ===================================================================== --> |
|
157 <!-- Default target --> |
|
158 <!-- ===================================================================== --> |
|
159 <target name="noDefault"> |
|
160 <echo message="You must specify a target when invoking this file" /> |
|
161 </target> |
|
162 |
|
163 </project> |