blob: 86c33426410c2cf6622955cb2ab9be12dd6b11ea [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"
20 value="org.eclipse.wst.tests.feature" />
21 </ant>
22 </target>
ndaib8cedc82005-09-13 18:00:32 +000023
david_williams3696f6f2005-12-30 07:59:43 +000024 <!-- ===================================================================== -->
25 <!-- Targets to assemble the built elements for particular configurations -->
26 <!-- These generally call the generated assemble scripts (named in -->
27 <!-- ${assembleScriptName}) but may also add pre and post processing -->
28 <!-- Add one target for each root element and each configuration -->
29 <!-- ===================================================================== -->
ndaib8cedc82005-09-13 18:00:32 +000030
david_williams3696f6f2005-12-30 07:59:43 +000031 <target name="assemble.org.eclipse.wst.tests.feature">
32 <property name="archiveName"
david_williamsd30a8542006-02-16 07:20:44 +000033 value="wtp-wst-Automated-Tests-${buildLabel}.zip" />
david_williams3696f6f2005-12-30 07:59:43 +000034 <ant antfile="${assembleScriptName}"
35 dir="${buildDirectory}" />
ndaib8cedc82005-09-13 18:00:32 +000036
david_williams3696f6f2005-12-30 07:59:43 +000037 <mkdir dir="${postingDirectory}/${buildLabel}/checksum" />
david_williamsd30a8542006-02-16 07:20:44 +000038 <checksum file="${postingDirectory}/${buildLabel}/wtp-wst-Automated-Tests-${buildLabel}.zip"
david_williams3696f6f2005-12-30 07:59:43 +000039 property="md5" />
david_williamsd30a8542006-02-16 07:20:44 +000040 <echo message="${md5} *wtp-wst-Automated-Tests-${buildLabel}.zip"
41 file="${postingDirectory}/${buildLabel}/checksum/wtp-wst-Automated-Tests-${buildLabel}.zip.md5" />
david_williamse23cd862005-12-30 08:08:40 +000042 <echo message="${md5}"
david_williamsd30a8542006-02-16 07:20:44 +000043 file="${postingDirectory}/${buildLabel}/checksum/wtp-wst-Automated-Tests-${buildLabel}.zip.md5antformat" />
ndaib8cedc82005-09-13 18:00:32 +000044
david_williams3696f6f2005-12-30 07:59:43 +000045 </target>
ndaib8cedc82005-09-13 18:00:32 +000046
david_williams3696f6f2005-12-30 07:59:43 +000047 <!-- ===================================================================== -->
48 <!-- Check out map files from correct repository -->
49 <!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
50 <!-- ===================================================================== -->
51 <target name="checkLocal">
52 <available property="mapsLocal"
53 file="${buildDirectory}/maps/releng" />
54 </target>
55 <target name="getMapFiles"
56 depends="checkLocal"
57 unless="mapsLocal">
ndaib8cedc82005-09-13 18:00:32 +000058
david_williams3696f6f2005-12-30 07:59:43 +000059 <!-- *** change the repo info -->
60 <property name="mapCvsRoot"
61 value=":${cvsProtocol}:${cvsUser}@${cvsServer}:${cvsRoot}" />
62 <property name="mapVersionTag" value="HEAD" />
63 <echo message="${mapCvsRoot} ${mapVersionTag} ">
64 </echo>
65 <cvs cvsRoot="${mapCvsRoot}"
66 package="releng"
67 dest="${buildDirectory}/maps"
68 tag="${mapVersionTag}" />
69 <!--tag the map files project-->
70 <antcall target="tagMapFiles">
71 <param name="mapCvsRoot"
72 value="${mapCvsRoot}" />
73 </antcall>
74 </target>
ndaib8cedc82005-09-13 18:00:32 +000075
david_williams3696f6f2005-12-30 07:59:43 +000076 <target name="tagMapFiles" if="tagMaps">
77 <cvs cvsRoot="${mapCvsRoot}"
78 dest="${buildDirectory}/maps"
79 command="tag v${buildType}${timestamp}" />
80 </target>
ndaib8cedc82005-09-13 18:00:32 +000081
82
david_williams3696f6f2005-12-30 07:59:43 +000083 <!-- ===================================================================== -->
84 <!-- Steps to do before setup -->
85 <!-- ===================================================================== -->
86 <target name="preSetup">
87 </target>
ndaib8cedc82005-09-13 18:00:32 +000088
david_williams3696f6f2005-12-30 07:59:43 +000089 <!-- ===================================================================== -->
90 <!-- Steps to do after setup but before starting the build proper -->
91 <!-- ===================================================================== -->
92 <target name="postSetup">
93 <dirname file="${ant.file}"
94 property="component.dir" />
95 <ant antfile="${component.dir}/dependency.xml"
96 target="get">
97 <property name="dependency.properties"
98 value="${buildDirectory}/maps/releng/maps/dependencies.properties" />
99 <property name="base.install.dir"
100 value="${buildRoot}" />
101 </ant>
102 <!--fetch the additional pieces to build wst tests -->
103 <property name="featureOnly" value="false" />
104 <property name="featureAndPlugins" value="true" />
105 <property name="featuresRecursively" value="true" />
106 <ant antfile="genericTargets.xml"
107 dir="${pde.build.scripts}"
108 target="fetchElement">
109 <property name="type" value="feature" />
110 <property name="id" value="org.eclipse.wst" />
111 </ant>
112 </target>
ndaib8cedc82005-09-13 18:00:32 +0000113
david_williams3696f6f2005-12-30 07:59:43 +0000114 <!-- ===================================================================== -->
115 <!-- Steps to do before fetching the build elements -->
116 <!-- ===================================================================== -->
117 <target name="preFetch">
ndaib8cedc82005-09-13 18:00:32 +0000118
david_williams3696f6f2005-12-30 07:59:43 +0000119 </target>
ndaib8cedc82005-09-13 18:00:32 +0000120
david_williams3696f6f2005-12-30 07:59:43 +0000121 <!-- ===================================================================== -->
122 <!-- Steps to do after fetching the build elements -->
123 <!-- ===================================================================== -->
124 <target name="postFetch">
125 </target>
ndaib8cedc82005-09-13 18:00:32 +0000126
david_williams3696f6f2005-12-30 07:59:43 +0000127 <!-- ===================================================================== -->
128 <!-- Steps to do before generating the build scripts. -->
129 <!-- ===================================================================== -->
130 <target name="preGenerate">
131 </target>
ndaib8cedc82005-09-13 18:00:32 +0000132
david_williams3696f6f2005-12-30 07:59:43 +0000133 <!-- ===================================================================== -->
134 <!-- Steps to do after generating the build scripts. -->
135 <!-- ===================================================================== -->
136 <target name="postGenerate">
137 </target>
ndaib8cedc82005-09-13 18:00:32 +0000138
139
david_williams3696f6f2005-12-30 07:59:43 +0000140 <!-- ===================================================================== -->
141 <!-- Steps to do before running the build.xmls for the elements being built. -->
142 <!-- ===================================================================== -->
143 <target name="preProcess">
144 </target>
ndaib8cedc82005-09-13 18:00:32 +0000145
david_williams3696f6f2005-12-30 07:59:43 +0000146 <!-- ===================================================================== -->
147 <!-- Steps to do after running the build.xmls for the elements being built. -->
148 <!-- ===================================================================== -->
149 <target name="postProcess">
150 </target>
ndaib8cedc82005-09-13 18:00:32 +0000151
152
david_williams3696f6f2005-12-30 07:59:43 +0000153 <!-- ===================================================================== -->
154 <!-- Steps to do before running assemble. -->
155 <!-- ===================================================================== -->
156 <target name="preAssemble">
157 </target>
ndaib8cedc82005-09-13 18:00:32 +0000158
david_williams3696f6f2005-12-30 07:59:43 +0000159 <!-- ===================================================================== -->
160 <!-- Steps to do after running assemble. -->
161 <!-- ===================================================================== -->
162 <target name="postAssemble">
163 </target>
ndaib8cedc82005-09-13 18:00:32 +0000164
david_williams3696f6f2005-12-30 07:59:43 +0000165 <!-- ===================================================================== -->
166 <!-- Steps to do after the build is done. -->
167 <!-- ===================================================================== -->
168 <target name="postBuild">
169 <!-- create zipped up versions for update site -->
david_williamsa2cff962006-04-30 19:25:31 +0000170 <!-- removing for now, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=139268
171
david_williams3696f6f2005-12-30 07:59:43 +0000172 <property name="UpdateSiteStagingLocation"
david_williams5730aa42006-04-16 02:56:37 +0000173 value="${buildDirectory}/${buildLabel}/updateSite" />
david_williams3696f6f2005-12-30 07:59:43 +0000174 <antcall target="generateUpdateSite" />
david_williamsa2cff962006-04-30 19:25:31 +0000175 -->
david_williams3696f6f2005-12-30 07:59:43 +0000176 </target>
ndaib8cedc82005-09-13 18:00:32 +0000177
david_williams3696f6f2005-12-30 07:59:43 +0000178 <target name="generateUpdateSite">
179 <!-- Create the directory structure -->
180 <mkdir dir="${UpdateSiteStagingLocation}" />
181 <mkdir dir="${UpdateSiteStagingLocation}/features" />
182 <mkdir dir="${UpdateSiteStagingLocation}/plugins" />
183 <!-- Build the jar files -->
184 <antcall target="allElements">
185 <param name="genericTargets"
186 value="${builder}/customTargets.xml" />
187 <param name="target" value="updateSiteExport" />
188 </antcall>
189 <antcall target="copySiteXmlFromCvs" />
190 <antcall target="createNightlyBuildSiteXml" />
191 </target>
192 <target name="updateSiteExport">
193 <ant antfile="build.xml"
194 dir="${buildDirectory}/features/${id}/"
195 target="build.update.jar">
196 <property name="feature.destination"
197 value="${UpdateSiteStagingLocation}/features" />
198 <property name="plugin.destination"
199 value="${UpdateSiteStagingLocation}/plugins" />
200 </ant>
201 </target>
202 <target name="copySiteXmlFromCvs"
203 unless="isNightlyBuild">
204 <!-- connect to CVS and fetch site.xml, copy to ${UpdateSiteStagingLocation}/site.xml afterwards -->
205 </target>
206 <target name="createNightlyBuildSiteXml"
207 if="isNightlyBuild">
208 <!-- create ${UpdateSiteStagingLocation}/site.xml which contains only the nighlty build version -->
209 </target>
ndaib8cedc82005-09-13 18:00:32 +0000210
ndaib8cedc82005-09-13 18:00:32 +0000211
david_williams3696f6f2005-12-30 07:59:43 +0000212 <!-- ===================================================================== -->
213 <!-- Steps to do to test the build results -->
214 <!-- ===================================================================== -->
215 <target name="test">
216 </target>
217
218 <!-- ===================================================================== -->
219 <!-- Steps to do to publish the build results -->
220 <!-- ===================================================================== -->
221 <target name="publish">
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>