blob: c882128000de9eceae5006358e96f1619748245d [file] [log] [blame]
david_williamsd913e922006-11-13 07:24:21 +00001<project
2 name="Build specific targets and properties"
3 default="noDefault">
ndai91f5c9b2006-03-12 13:56:45 +00004
ndai91f5c9b2006-03-12 13:56:45 +00005
david_williamsd913e922006-11-13 07:24:21 +00006 <!-- ===================================================================== -->
7 <!-- Run a given ${target} on all elements being built -->
8 <!-- Add on <ant> task for each top level element being built. -->
9 <!-- ===================================================================== -->
10 <target name="allElements">
11 <echo message="Target: ${target} " />
12 <echo message="basedir: ${basedir}" />
david_williamsd913e922006-11-13 07:24:21 +000013 <echo message="buildDirectory: ${buildDirectory}" />
14 <echo message="baseLocation: ${baseLocation}" />
15 <echo message="generic target: ${genericTargets}" />
16 <ant
17 antfile="${genericTargets}"
18 target="${target}">
19 <property
20 name="type"
21 value="feature" />
22 <property
23 name="id"
24 value="org.eclipse.jpa" />
25 </ant>
26 </target>
ndai91f5c9b2006-03-12 13:56:45 +000027
david_williamsd913e922006-11-13 07:24:21 +000028 <!-- ===================================================================== -->
29 <!-- Targets to assemble the built elements for particular configurations -->
30 <!-- These generally call the generated assemble scripts (named in -->
31 <!-- ${assembleScriptName}) but may also add pre and post processing -->
32 <!-- Add one target for each root element and each configuration -->
33 <!-- ===================================================================== -->
ndai91f5c9b2006-03-12 13:56:45 +000034
david_williamsd913e922006-11-13 07:24:21 +000035 <target name="assemble.org.eclipse.jpa">
36 <property
37 name="archiveName"
38 value="wtp-jpa-${buildLabel}.zip" />
39 <ant
40 antfile="${assembleScriptName}"
41 dir="${buildDirectory}" />
david_williamsae0e4cb2006-11-11 02:55:51 +000042
david_williamsd913e922006-11-13 07:24:21 +000043 </target>
david_williamsae0e4cb2006-11-11 02:55:51 +000044
david_williamsd913e922006-11-13 07:24:21 +000045 <target name="prePackage" />
david_williamsae0e4cb2006-11-11 02:55:51 +000046
david_williamsd913e922006-11-13 07:24:21 +000047 <target name="postPackage">
48 <property
49 name="archiveName"
50 value="wtp-jpa-${buildLabel}.zip" />
david_williamsae0e4cb2006-11-11 02:55:51 +000051
david_williamsd913e922006-11-13 07:24:21 +000052 <ant
53 antfile="${wtp.builder.home}/scripts/build/buildutilities.xml"
54 target="unpackUpdateJarsAndCreateZippedPackages">
55 <property
56 name="buildDirectory"
57 value="${buildDirectory}" />
58 <property
59 name="buildLabel"
60 value="${buildLabel}" />
61 <property
62 name="archiveName"
63 value="${archiveName}" />
64 </ant>
65
66 </target>
67
68 <!-- ===================================================================== -->
69 <!-- Check out map files from correct repository -->
70 <!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
71 <!-- ===================================================================== -->
72 <target name="checkLocal">
73 <available
74 property="mapsLocal"
75 file="${buildDirectory}/maps/releng.dali" />
76 </target>
77
78 <target
79 name="getMapFiles"
80 depends="checkLocal"
81 unless="mapsLocal">
82
ndai91f5c9b2006-03-12 13:56:45 +000083 <!-- *** change the repo info -->
david_williamsd913e922006-11-13 07:24:21 +000084 <property
85 name="mapCvsRoot"
86 value=":${cvsProtocol}:${cvsUser}@${cvsServer}:${cvsRoot}" />
87 <property
88 name="mapVersionTag"
89 value="HEAD" />
90 <property
91 name="cvsPackage"
92 value="releng.dali" />
93 <echo message="${mapCvsRoot} ${mapVersionTag} " />
94 <echo message="cvsPackage = ${cvsPackage} " />
95
96 <cvs
97 cvsRoot="${mapCvsRoot}"
98 package="${cvsPackage}"
99 dest="${buildDirectory}/maps"
100 tag="${mapVersionTag}" />
ndai91f5c9b2006-03-12 13:56:45 +0000101 <!--tag the map files project-->
102 <antcall target="tagMapFiles">
david_williamsd913e922006-11-13 07:24:21 +0000103 <param
104 name="mapCvsRoot"
105 value="${mapCvsRoot}" />
ndai91f5c9b2006-03-12 13:56:45 +0000106 </antcall>
david_williamsd913e922006-11-13 07:24:21 +0000107 </target>
ndai91f5c9b2006-03-12 13:56:45 +0000108
david_williamsd913e922006-11-13 07:24:21 +0000109 <target
110 name="tagMapFiles"
111 if="tagMaps">
112 <cvs
113 cvsRoot="${mapCvsRoot}"
114 dest="${buildDirectory}/maps"
115 command="tag v${buildType}${timestamp}" />
116 </target>
ndai91f5c9b2006-03-12 13:56:45 +0000117
david_williamsd913e922006-11-13 07:24:21 +0000118 <!-- ===================================================================== -->
119 <!-- Steps to do before setup -->
120 <!-- ===================================================================== -->
121 <target name="preSetup"></target>
ndai91f5c9b2006-03-12 13:56:45 +0000122
david_williamsd913e922006-11-13 07:24:21 +0000123 <!-- ===================================================================== -->
124 <!-- Steps to do after setup but before starting the build proper -->
125 <!-- ===================================================================== -->
126 <target name="postSetup">
127 <dirname
128 file="${ant.file}"
129 property="component.dir" />
130 <echo message="ant.file: ${ant.file}" />
131 <echo message="component.dir: ${component.dir}" />
ndai91f5c9b2006-03-12 13:56:45 +0000132
david_williamsd913e922006-11-13 07:24:21 +0000133<!-- need to make cumlative between releng and releng.dali -->
134 <ant
135 antfile="${component.dir}/dependency.xml"
136 target="get">
137 <property
138 name="dependency.properties"
139 value="${buildDirectory}/maps/releng/maps/dependencies.properties" />
140 <property
141 name="base.install.dir"
142 value="${buildRoot}" />
143 </ant>
ndai91f5c9b2006-03-12 13:56:45 +0000144
david_williamsd913e922006-11-13 07:24:21 +0000145 </target>
ndai91f5c9b2006-03-12 13:56:45 +0000146
david_williamsd913e922006-11-13 07:24:21 +0000147 <!-- ===================================================================== -->
148 <!-- Steps to do before fetching the build elements -->
149 <!-- ===================================================================== -->
150 <target name="preFetch"></target>
ndai91f5c9b2006-03-12 13:56:45 +0000151
david_williamsd913e922006-11-13 07:24:21 +0000152 <!-- ===================================================================== -->
153 <!-- Steps to do after fetching the build elements -->
154 <!-- ===================================================================== -->
155 <target name="postFetch"></target>
ndai91f5c9b2006-03-12 13:56:45 +0000156
david_williamsd913e922006-11-13 07:24:21 +0000157 <!-- ===================================================================== -->
158 <!-- Steps to do before generating the build scripts. -->
159 <!-- ===================================================================== -->
160 <target name="preGenerate"></target>
ndai91f5c9b2006-03-12 13:56:45 +0000161
david_williamsd913e922006-11-13 07:24:21 +0000162 <!-- ===================================================================== -->
163 <!-- Steps to do after generating the build scripts. -->
164 <!-- ===================================================================== -->
165 <target name="postGenerate"></target>
ndai91f5c9b2006-03-12 13:56:45 +0000166
167
david_williamsd913e922006-11-13 07:24:21 +0000168 <!-- ===================================================================== -->
169 <!-- Steps to do before running the build.xmls for the elements being built. -->
170 <!-- ===================================================================== -->
171 <target name="preProcess">
172 <replace
173 dir="${buildDirectory}/plugins"
174 value="${timestamp}"
175 token="@build@">
176 <include name="**/about.mappings" />
177 </replace>
178 </target>
ndai91f5c9b2006-03-12 13:56:45 +0000179
david_williamsd913e922006-11-13 07:24:21 +0000180 <!-- ===================================================================== -->
181 <!-- Steps to do after running the build.xmls for the elements being built. -->
182 <!-- ===================================================================== -->
183 <target name="postProcess">
184 <condition property="logsAvailable">
185 <istrue value="${javacVerbose}" />
186 </condition>
187 <antcall target="gatherLogs" />
188 </target>
ndai91f5c9b2006-03-12 13:56:45 +0000189
190
david_williamsd913e922006-11-13 07:24:21 +0000191 <!-- ===================================================================== -->
192 <!-- Steps to do before running assemble. -->
193 <!-- ===================================================================== -->
194 <target name="preAssemble"></target>
ndai91f5c9b2006-03-12 13:56:45 +0000195
david_williamsd913e922006-11-13 07:24:21 +0000196 <!-- ===================================================================== -->
197 <!-- Steps to do after running assemble. -->
198 <!-- ===================================================================== -->
199 <target name="postAssemble"></target>
ndai91f5c9b2006-03-12 13:56:45 +0000200
david_williamsd913e922006-11-13 07:24:21 +0000201 <!-- ===================================================================== -->
202 <!-- Steps to do after the build is done. -->
203 <!-- ===================================================================== -->
204 <target name="postBuild"></target>
ndai91f5c9b2006-03-12 13:56:45 +0000205
david_williamsd913e922006-11-13 07:24:21 +0000206 <!-- ===================================================================== -->
207 <!-- Steps to test the build results -->
208 <!-- ===================================================================== -->
209 <target name="test"></target>
david_williams518a8692006-04-29 19:34:27 +0000210
david_williamsd913e922006-11-13 07:24:21 +0000211 <!-- ===================================================================== -->
212 <!-- Steps to do to publish the build results -->
213 <!-- ===================================================================== -->
214 <target name="publish"></target>
ndai91f5c9b2006-03-12 13:56:45 +0000215
david_williamsd913e922006-11-13 07:24:21 +0000216 <!-- ===================================================================== -->
217 <!-- Helper targets -->
218 <!-- ===================================================================== -->
219 <target
220 name="gatherLogs"
221 if="logsAvailable">
222 <mkdir dir="${buildDirectory}/${buildLabel}/compilelogs" />
223 <antcall target="allElements">
224 <param
225 name="target"
226 value="gatherLogs" />
227 </antcall>
ndai91f5c9b2006-03-12 13:56:45 +0000228
david_williamsd913e922006-11-13 07:24:21 +0000229 <unzip
230 dest="${buildDirectory}/${buildLabel}/compilelogs"
231 overwrite="true">
232 <fileset dir="${buildDirectory}/features/org.eclipse.jpa">
233 <include name="**/*.log.zip" />
234 </fileset>
235 </unzip>
236 </target>
ndai91f5c9b2006-03-12 13:56:45 +0000237
david_williamsd913e922006-11-13 07:24:21 +0000238 <target
239 name="clean"
240 unless="noclean">
241 <antcall target="allElements">
242 <param
243 name="target"
244 value="cleanElement" />
245 </antcall>
246 </target>
ndai91f5c9b2006-03-12 13:56:45 +0000247
david_williamsd913e922006-11-13 07:24:21 +0000248 <!-- ===================================================================== -->
249 <!-- Default target -->
250 <!-- ===================================================================== -->
251 <target name="noDefault">
252 <echo message="You must specify a target when invoking this file" />
253 </target>
ndai91f5c9b2006-03-12 13:56:45 +0000254
255</project>