blob: 5b1baded9ec5200909d541c3585db71ea60eea90 [file] [log] [blame]
david_williamsd913e922006-11-13 07:24:21 +00001<project
2 name="Build specific targets and properties"
3 default="noDefault">
ndaib8cedc82005-09-13 18:00:32 +00004
david_williamsf9aae9f2006-05-26 23:58:24 +00005
ndaib8cedc82005-09-13 18:00:32 +00006
david_williamsd913e922006-11-13 07:24:21 +00007 <!-- ===================================================================== -->
8 <!-- Run a given ${target} on all elements being built -->
9 <!-- Add on <ant> task for each top level element being built. -->
10 <!-- ===================================================================== -->
11 <target name="allElements">
12 <echo message="Target:${target} " />
13 <echo message="basedir: ${basedir}" />
david_williamsd913e922006-11-13 07:24:21 +000014 <echo message="buildDirectory: ${buildDirectory}" />
15 <echo message="baseLocation: ${baseLocation}" />
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.wst.tests.feature" />
25 </ant>
david_williamsa0aec8e2006-05-23 00:29:00 +000026 </target>
david_williamsd913e922006-11-13 07:24:21 +000027
28 <!-- ===================================================================== -->
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 <!-- ===================================================================== -->
34
35 <target name="assemble.org.eclipse.wst.tests.feature">
36 <property
37 name="archiveName"
38 value="wtp-wst-Automated-Tests-${buildLabel}.zip" />
39 <ant
40 antfile="${assembleScriptName}"
41 dir="${buildDirectory}" />
42 </target>
43
david_williamsa0aec8e2006-05-23 00:29:00 +000044 <target name="prePackage" />
45
46
47 <target name="postPackage">
david_williamsd913e922006-11-13 07:24:21 +000048 <property
49 name="archiveName"
50 value="wtp-wst-Automated-Tests-${buildLabel}.zip" />
ndaib8cedc82005-09-13 18:00:32 +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>
ndaib8cedc82005-09-13 18:00:32 +000065
david_williamsd913e922006-11-13 07:24:21 +000066 </target>
david_williams072c6f72006-05-19 10:50:58 +000067
david_williamsd913e922006-11-13 07:24:21 +000068 <!-- ===================================================================== -->
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" />
76 </target>
77 <target
78 name="getMapFiles"
79 depends="checkLocal"
80 unless="mapsLocal">
ndaib8cedc82005-09-13 18:00:32 +000081
david_williamsd913e922006-11-13 07:24:21 +000082 <!-- *** change the repo info -->
83 <property
84 name="mapCvsRoot"
85 value=":${cvsProtocol}:${cvsUser}@${cvsServer}:${cvsRoot}" />
86 <property
87 name="mapVersionTag"
88 value="HEAD" />
89 <property
90 name="cvsPackage"
91 value="releng" />
92 <echo message="${mapCvsRoot} ${mapVersionTag} " />
93 <echo message="cvsPackage = ${cvsPackage} " />
94 <cvs
95 cvsRoot="${mapCvsRoot}"
96 package="${cvsPackage}"
97 dest="${buildDirectory}/maps"
98 tag="${mapVersionTag}" />
99 <!--tag the map files project-->
100 <antcall target="tagMapFiles">
101 <param
102 name="mapCvsRoot"
103 value="${mapCvsRoot}" />
104 </antcall>
105 </target>
ndaib8cedc82005-09-13 18:00:32 +0000106
david_williamsd913e922006-11-13 07:24:21 +0000107 <target
108 name="tagMapFiles"
109 if="tagMaps">
110 <cvs
111 cvsRoot="${mapCvsRoot}"
112 dest="${buildDirectory}/maps"
113 command="tag v${buildType}${timestamp}" />
114 </target>
ndaib8cedc82005-09-13 18:00:32 +0000115
116
david_williamsd913e922006-11-13 07:24:21 +0000117 <!-- ===================================================================== -->
118 <!-- Steps to do before setup -->
119 <!-- ===================================================================== -->
120 <target name="preSetup"></target>
ndaib8cedc82005-09-13 18:00:32 +0000121
david_williamsd913e922006-11-13 07:24:21 +0000122 <!-- ===================================================================== -->
123 <!-- Steps to do after setup but before starting the build proper -->
124 <!-- ===================================================================== -->
125 <target name="postSetup">
126 <dirname
127 file="${ant.file}"
128 property="component.dir" />
129 <echo message="ant.file: ${ant.file}" />
130 <echo message="component.dir: ${component.dir}" />
ndaib8cedc82005-09-13 18:00:32 +0000131
david_williamsd913e922006-11-13 07:24:21 +0000132 <ant
133 antfile="${component.dir}/dependency.xml"
134 target="get">
135 <property
136 name="dependency.properties"
137 value="${buildDirectory}/maps/releng/maps/dependencies.properties" />
138 <property
139 name="base.install.dir"
140 value="${buildRoot}" />
141 </ant>
142 <!--fetch the additional pieces to build wst tests -->
143 <property
144 name="featureOnly"
145 value="false" />
146 <property
147 name="featureAndPlugins"
148 value="true" />
149 <property
150 name="featuresRecursively"
151 value="true" />
152 <ant
153 antfile="genericTargets.xml"
154 dir="${pde.build.scripts}"
155 target="fetchElement">
156 <property
157 name="type"
158 value="feature" />
159 <property
160 name="id"
161 value="org.eclipse.wst" />
162 </ant>
163 </target>
ndaib8cedc82005-09-13 18:00:32 +0000164
david_williamsd913e922006-11-13 07:24:21 +0000165 <!-- ===================================================================== -->
166 <!-- Steps to do before fetching the build elements -->
167 <!-- ===================================================================== -->
168 <target name="preFetch"></target>
ndaib8cedc82005-09-13 18:00:32 +0000169
david_williamsd913e922006-11-13 07:24:21 +0000170 <!-- ===================================================================== -->
171 <!-- Steps to do after fetching the build elements -->
172 <!-- ===================================================================== -->
173 <target name="postFetch"></target>
ndaib8cedc82005-09-13 18:00:32 +0000174
david_williamsd913e922006-11-13 07:24:21 +0000175 <!-- ===================================================================== -->
176 <!-- Steps to do before generating the build scripts. -->
177 <!-- ===================================================================== -->
david_williams0b74c592007-04-09 06:11:35 +0000178 <target name="postGenerate">
179 <customizeAccessRules bundleDirectory="${buildDirectory}/plugins" defaultRules="+org/eclipse/wst/**/*, +org/eclipse/jst/**/*" />
180 </target>
david_williamsd913e922006-11-13 07:24:21 +0000181 <!-- ===================================================================== -->
182 <!-- Steps to do after generating the build scripts. -->
183 <!-- ===================================================================== -->
david_williams0b74c592007-04-09 06:11:35 +0000184 <target name="preGenerate"></target>
ndaib8cedc82005-09-13 18:00:32 +0000185
186
david_williamsd913e922006-11-13 07:24:21 +0000187 <!-- ===================================================================== -->
188 <!-- Steps to do before running the build.xmls for the elements being built. -->
189 <!-- ===================================================================== -->
190 <target name="preProcess"></target>
ndaib8cedc82005-09-13 18:00:32 +0000191
david_williamsd913e922006-11-13 07:24:21 +0000192 <!-- ===================================================================== -->
193 <!-- Steps to do after running the build.xmls for the elements being built. -->
194 <!-- ===================================================================== -->
david_williamsc84ab8c2006-12-11 18:50:34 +0000195 <target name="postProcess">
196
197 <condition property="logsAvailable">
198 <istrue value="${javacVerbose}" />
199 </condition>
200 <antcall target="gatherLogs" />
david_williams0b74c592007-04-09 06:11:35 +0000201
david_williamsc84ab8c2006-12-11 18:50:34 +0000202 </target>
ndaib8cedc82005-09-13 18:00:32 +0000203
204
david_williamsd913e922006-11-13 07:24:21 +0000205 <!-- ===================================================================== -->
206 <!-- Steps to do before running assemble. -->
207 <!-- ===================================================================== -->
208 <target name="preAssemble"></target>
ndaib8cedc82005-09-13 18:00:32 +0000209
david_williamsd913e922006-11-13 07:24:21 +0000210 <!-- ===================================================================== -->
211 <!-- Steps to do after running assemble. -->
212 <!-- ===================================================================== -->
213 <target name="postAssemble"></target>
ndaib8cedc82005-09-13 18:00:32 +0000214
david_williamsd913e922006-11-13 07:24:21 +0000215 <!-- ===================================================================== -->
216 <!-- Steps to do after the build is done. -->
217 <!-- ===================================================================== -->
218 <target name="postBuild"></target>
ndaib8cedc82005-09-13 18:00:32 +0000219
david_williamsa0aec8e2006-05-23 00:29:00 +0000220
221
david_williamsd913e922006-11-13 07:24:21 +0000222 <!-- ===================================================================== -->
223 <!-- Steps to test the build results -->
224 <!-- ===================================================================== -->
225 <target name="test"></target>
ndaib8cedc82005-09-13 18:00:32 +0000226
david_williamsd913e922006-11-13 07:24:21 +0000227 <!-- ===================================================================== -->
228 <!-- Steps to do to publish the build results -->
229 <!-- ===================================================================== -->
230 <target name="publish"></target>
david_williamsc84ab8c2006-12-11 18:50:34 +0000231 <!-- ===================================================================== -->
232 <!-- Helper targets -->
233 <!-- ===================================================================== -->
234 <target
235 name="gatherLogs"
236 if="logsAvailable">
237 <mkdir dir="${buildDirectory}/${buildLabel}/testcompilelogs" />
david_williams0b74c592007-04-09 06:11:35 +0000238 <echo message="logExtension: ${logExtension}" />
david_williamsc84ab8c2006-12-11 18:50:34 +0000239 <antcall target="allElements">
240 <param
241 name="target"
242 value="gatherLogs" />
david_williams0b74c592007-04-09 06:11:35 +0000243 <param
244 name="logExtension"
245 value="${logExtension}" />
david_williamsc84ab8c2006-12-11 18:50:34 +0000246 </antcall>
david_williamsc84ab8c2006-12-11 18:50:34 +0000247 <unzip
248 dest="${buildDirectory}/${buildLabel}/testcompilelogs"
249 overwrite="true">
250 <fileset dir="${buildDirectory}/features/org.eclipse.wst.tests.feature">
251 <include name="**/*.log.zip" />
252 </fileset>
253 </unzip>
254
255
256 </target>
257
258 <target
259 name="clean"
260 unless="noclean">
261 <antcall target="allElements">
262 <param
263 name="target"
264 value="cleanElement" />
265 </antcall>
266 </target>
david_williamsd913e922006-11-13 07:24:21 +0000267 <!-- ===================================================================== -->
268 <!-- Default target -->
269 <!-- ===================================================================== -->
270 <target name="noDefault">
271 <echo message="You must specify a target when invoking this file" />
272 </target>
ndaib8cedc82005-09-13 18:00:32 +0000273
274</project>