blob: 8812f850683fcdfed78fea6077f66bdcd039cf3d [file] [log] [blame]
david_williams3696f6f2005-12-30 07:59:43 +00001<project name="Build specific targets and properties"
2 default="noDefault">
ndaib8cedc82005-09-13 18:00:32 +00003
david_williams3696f6f2005-12-30 07:59:43 +00004 <property name="postingDirectory"
5 value="${buildDirectory}" />
ndaib8cedc82005-09-13 18:00:32 +00006
david_williams3696f6f2005-12-30 07:59:43 +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}" />
14 <echo message="component: ${component}" />
15 <echo message="buildDirectory: ${buildDirectory}" />
16 <echo message="baseLocation: ${baseLocation}" />
17 <ant antfile="${genericTargets}" target="${target}">
18 <property name="type" value="feature" />
19 <property name="id" value="org.eclipse.wst" />
20 </ant>
21 </target>
ndaib8cedc82005-09-13 18:00:32 +000022
david_williams3696f6f2005-12-30 07:59:43 +000023 <!-- ===================================================================== -->
24 <!-- Targets to assemble the built elements for particular configurations -->
25 <!-- These generally call the generated assemble scripts (named in -->
26 <!-- ${assembleScriptName}) but may also add pre and post processing -->
27 <!-- Add one target for each root element and each configuration -->
28 <!-- ===================================================================== -->
ndaib8cedc82005-09-13 18:00:32 +000029
david_williams3696f6f2005-12-30 07:59:43 +000030 <target name="assemble.org.eclipse.wst">
31 <property name="archiveName"
david_williams9f5129b2006-02-18 04:32:57 +000032 value="wtp-wst-${buildLabel}.zip" />
david_williams3696f6f2005-12-30 07:59:43 +000033 <ant antfile="${assembleScriptName}"
34 dir="${buildDirectory}" />
ndaib8cedc82005-09-13 18:00:32 +000035
david_williams072c6f72006-05-19 10:50:58 +000036
37 <ant antfile="${wtp.builder.home}/scripts/build/buildutilities.xml" target="unpackUpdateJarsAndCreateZippedPackages">
38 <property name="postingDirectory" value="${postingDirectory}"/>
39 <property name="buildDirectory" value="${buildDirectory}"/>
40 <property name="buildLabel" value="${buildLabel}"/>
41 <property name="archiveName" value="${archiveName}"/>
42 </ant>
43
44 <ant antfile="${wtp.builder.home}/scripts/build/buildutilities.xml" target="createChecksums">
45 <property name="postingDirectory" value="${postingDirectory}"/>
46 <property name="buildLabel" value="${buildLabel}"/>
47 <property name="archiveName" value="${archiveName}"/>
48 </ant>
49
50
david_williams3696f6f2005-12-30 07:59:43 +000051 </target>
ndaib8cedc82005-09-13 18:00:32 +000052
david_williams072c6f72006-05-19 10:50:58 +000053
54
david_williams3696f6f2005-12-30 07:59:43 +000055 <!-- ===================================================================== -->
56 <!-- Check out map files from correct repository -->
57 <!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
58 <!-- ===================================================================== -->
59 <target name="checkLocal">
60 <available property="mapsLocal"
61 file="${buildDirectory}/maps/releng" />
62 </target>
63 <target name="getMapFiles"
64 depends="checkLocal"
65 unless="mapsLocal">
ndaib8cedc82005-09-13 18:00:32 +000066
david_williams3696f6f2005-12-30 07:59:43 +000067 <!-- *** change the repo info -->
68 <property name="mapCvsRoot"
69 value=":${cvsProtocol}:${cvsUser}@${cvsServer}:${cvsRoot}" />
70 <property name="mapVersionTag" value="HEAD" />
71 <echo message="${mapCvsRoot} ${mapVersionTag} ">
72 </echo>
73 <cvs cvsRoot="${mapCvsRoot}"
74 package="releng"
75 dest="${buildDirectory}/maps"
76 tag="${mapVersionTag}" />
77 <!--tag the map files project-->
78 <antcall target="tagMapFiles">
79 <param name="mapCvsRoot"
80 value="${mapCvsRoot}" />
81 </antcall>
82 </target>
ndaib8cedc82005-09-13 18:00:32 +000083
david_williams3696f6f2005-12-30 07:59:43 +000084 <target name="tagMapFiles" if="tagMaps">
85 <cvs cvsRoot="${mapCvsRoot}"
86 dest="${buildDirectory}/maps"
87 command="tag v${buildType}${timestamp}" />
88 </target>
ndaib8cedc82005-09-13 18:00:32 +000089
90
david_williams3696f6f2005-12-30 07:59:43 +000091 <!-- ===================================================================== -->
92 <!-- Steps to do before setup -->
93 <!-- ===================================================================== -->
94 <target name="preSetup">
95 </target>
ndaib8cedc82005-09-13 18:00:32 +000096
david_williams3696f6f2005-12-30 07:59:43 +000097 <!-- ===================================================================== -->
98 <!-- Steps to do after setup but before starting the build proper -->
99 <!-- ===================================================================== -->
100 <target name="postSetup">
101 <dirname file="${ant.file}"
102 property="component.dir" />
103 <ant antfile="${component.dir}/dependency.xml"
104 target="get">
105 <property name="dependency.properties"
106 value="${buildDirectory}/maps/releng/maps/dependencies.properties" />
107 <property name="base.install.dir"
108 value="${buildRoot}" />
109 </ant>
ndaib8cedc82005-09-13 18:00:32 +0000110
david_williams3696f6f2005-12-30 07:59:43 +0000111 </target>
ndaib8cedc82005-09-13 18:00:32 +0000112
david_williams3696f6f2005-12-30 07:59:43 +0000113 <!-- ===================================================================== -->
114 <!-- Steps to do before fetching the build elements -->
115 <!-- ===================================================================== -->
116 <target name="preFetch">
117 </target>
ndaib8cedc82005-09-13 18:00:32 +0000118
david_williams3696f6f2005-12-30 07:59:43 +0000119 <!-- ===================================================================== -->
120 <!-- Steps to do after fetching the build elements -->
121 <!-- ===================================================================== -->
122 <target name="postFetch">
123 </target>
ndaib8cedc82005-09-13 18:00:32 +0000124
david_williams3696f6f2005-12-30 07:59:43 +0000125 <!-- ===================================================================== -->
126 <!-- Steps to do before generating the build scripts. -->
127 <!-- ===================================================================== -->
128 <target name="preGenerate">
129 </target>
ndaib8cedc82005-09-13 18:00:32 +0000130
david_williams3696f6f2005-12-30 07:59:43 +0000131 <!-- ===================================================================== -->
132 <!-- Steps to do after generating the build scripts. -->
133 <!-- ===================================================================== -->
134 <target name="postGenerate">
135 </target>
ndaib8cedc82005-09-13 18:00:32 +0000136
137
david_williams3696f6f2005-12-30 07:59:43 +0000138 <!-- ===================================================================== -->
139 <!-- Steps to do before running the build.xmls for the elements being built. -->
140 <!-- ===================================================================== -->
141 <target name="preProcess">
142 <replace dir="${buildDirectory}/plugins"
143 value="${timestamp}"
144 token="@build@">
145 <include name="**/about.mappings" />
146 </replace>
147 </target>
ndaib8cedc82005-09-13 18:00:32 +0000148
david_williams3696f6f2005-12-30 07:59:43 +0000149 <!-- ===================================================================== -->
150 <!-- Steps to do after running the build.xmls for the elements being built. -->
151 <!-- ===================================================================== -->
152 <target name="postProcess">
153 <condition property="logsAvailable">
154 <istrue value="${javacVerbose}" />
155 </condition>
156 <antcall target="gatherLogs" />
157 </target>
ndaib8cedc82005-09-13 18:00:32 +0000158
159
david_williams3696f6f2005-12-30 07:59:43 +0000160 <!-- ===================================================================== -->
161 <!-- Steps to do before running assemble. -->
162 <!-- ===================================================================== -->
163 <target name="preAssemble">
164 <ant antfile="${buildDirectory}/plugins/org.eclipse.wst.ws.explorer/build-war.xml">
165 <property name="baseLocation"
166 value="${baseLocation}" />
167 <property name="basedir"
168 value="${buildDirectory}/plugins/org.eclipse.wst.ws.explorer" />
169 <property name="buildDirectory"
170 value="${buildDirectory}" />
171 </ant>
172 </target>
ndaib8cedc82005-09-13 18:00:32 +0000173
david_williams3696f6f2005-12-30 07:59:43 +0000174 <!-- ===================================================================== -->
175 <!-- Steps to do after running assemble. -->
176 <!-- ===================================================================== -->
177 <target name="postAssemble">
178 </target>
ndaib8cedc82005-09-13 18:00:32 +0000179
david_williams3696f6f2005-12-30 07:59:43 +0000180 <!-- ===================================================================== -->
181 <!-- Steps to do after the build is done. -->
182 <!-- ===================================================================== -->
183 <target name="postBuild">
david_williams7a14b312006-05-20 23:55:48 +0000184
david_williams3696f6f2005-12-30 07:59:43 +0000185 </target>
ndaib8cedc82005-09-13 18:00:32 +0000186
187
david_williams3696f6f2005-12-30 07:59:43 +0000188 <!-- ===================================================================== -->
189 <!-- Steps to do to test the build results -->
190 <!-- ===================================================================== -->
191 <target name="test">
192 </target>
ndaib8cedc82005-09-13 18:00:32 +0000193
david_williams3696f6f2005-12-30 07:59:43 +0000194 <!-- ===================================================================== -->
195 <!-- Steps to do to publish the build results -->
196 <!-- ===================================================================== -->
197 <target name="publish">
198 </target>
ndaib8cedc82005-09-13 18:00:32 +0000199
ndaib8cedc82005-09-13 18:00:32 +0000200
david_williams3696f6f2005-12-30 07:59:43 +0000201 <!-- ===================================================================== -->
202 <!-- Helper targets -->
203 <!-- ===================================================================== -->
204 <target name="gatherLogs" if="logsAvailable">
205 <mkdir dir="${buildDirectory}/${buildLabel}/compilelogs" />
206 <antcall target="allElements">
207 <param name="target" value="gatherLogs" />
208 </antcall>
209
210 <unzip dest="${buildDirectory}/${buildLabel}/compilelogs"
211 overwrite="true">
212 <fileset dir="${buildDirectory}/features/org.eclipse.wst">
213 <include name="*.log.zip" />
214 </fileset>
215 </unzip>
216 </target>
217
218 <target name="clean" unless="noclean">
219 <antcall target="allElements">
220 <param name="target" value="cleanElement" />
221 </antcall>
222 </target>
223
224 <!-- ===================================================================== -->
225 <!-- Default target -->
226 <!-- ===================================================================== -->
227 <target name="noDefault">
228 <echo message="You must specify a target when invoking this file" />
229 </target>
ndaib8cedc82005-09-13 18:00:32 +0000230
231</project>