blob: c62e5f15fe3482e9bfe631ba73b4500023b09ef9 [file] [log] [blame]
david_williams3696f6f2005-12-30 07:59:43 +00001<project name="Build specific targets and properties"
2 default="noDefault">
3 <property name="postingDirectory"
4 value="${buildDirectory}" />
ndaib8cedc82005-09-13 18:00:32 +00005
david_williams3696f6f2005-12-30 07:59:43 +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}" />
13 <echo message="component: ${component}" />
14 <echo message="buildDirectory: ${buildDirectory}" />
15 <echo message="baseLocation: ${baseLocation}" />
16 <ant antfile="${genericTargets}" target="${target}">
17 <property name="type" value="feature" />
18 <property name="id"
19 value="org.eclipse.jst.tests" />
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.jst.tests">
31 <property name="archiveName"
david_williams9f5129b2006-02-18 04:32:57 +000032 value="wtp-jst-Automated-Tests-${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 <ant antfile="${wtp.builder.home}/scripts/build/buildutilities.xml" target="unpackUpdateJarsAndCreateZippedPackages">
37 <property name="postingDirectory" value="${postingDirectory}" />
38 <property name="buildDirectory" value="${buildDirectory}" />
39 <property name="buildLabel" value="${buildLabel}" />
40 <property name="archiveName" value="${archiveName}" />
41 </ant>
42
43 <ant antfile="${wtp.builder.home}/scripts/build/buildutilities.xml" target="createChecksums">
44 <property name="postingDirectory" value="${postingDirectory}" />
45 <property name="buildLabel" value="${buildLabel}"/>
46 <property name="archiveName" value="${archiveName}"/>
47 </ant>
48
david_williams3696f6f2005-12-30 07:59:43 +000049 </target>
ndaib8cedc82005-09-13 18:00:32 +000050
david_williams3696f6f2005-12-30 07:59:43 +000051 <!-- ===================================================================== -->
52 <!-- Check out map files from correct repository -->
53 <!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
54 <!-- ===================================================================== -->
55 <target name="checkLocal">
56 <available property="mapsLocal"
57 file="${buildDirectory}/maps/releng" />
58 </target>
59 <target name="getMapFiles"
60 depends="checkLocal"
61 unless="mapsLocal">
ndaib8cedc82005-09-13 18:00:32 +000062
david_williams3696f6f2005-12-30 07:59:43 +000063 <!-- *** change the repo info -->
64 <property name="mapCvsRoot"
65 value=":${cvsProtocol}:${cvsUser}@${cvsServer}:${cvsRoot}" />
66 <property name="mapVersionTag" value="HEAD" />
67 <echo message="${mapCvsRoot} ${mapVersionTag} ">
68 </echo>
69 <cvs cvsRoot="${mapCvsRoot}"
70 package="releng"
71 dest="${buildDirectory}/maps"
72 tag="${mapVersionTag}" />
73 <!--tag the map files project-->
74 <antcall target="tagMapFiles">
75 <param name="mapCvsRoot"
76 value="${mapCvsRoot}" />
77 </antcall>
78 </target>
ndaib8cedc82005-09-13 18:00:32 +000079
david_williams3696f6f2005-12-30 07:59:43 +000080 <target name="tagMapFiles" if="tagMaps">
81 <cvs cvsRoot="${mapCvsRoot}"
82 dest="${buildDirectory}/maps"
83 command="tag v${buildType}${timestamp}" />
84 </target>
ndaib8cedc82005-09-13 18:00:32 +000085
86
david_williams3696f6f2005-12-30 07:59:43 +000087 <!-- ===================================================================== -->
88 <!-- Steps to do before setup -->
89 <!-- ===================================================================== -->
90 <target name="preSetup">
91 </target>
ndaib8cedc82005-09-13 18:00:32 +000092
david_williams3696f6f2005-12-30 07:59:43 +000093 <!-- ===================================================================== -->
94 <!-- Steps to do after setup but before starting the build proper -->
95 <!-- ===================================================================== -->
96 <target name="postSetup">
97 <dirname file="${ant.file}"
98 property="component.dir" />
99 <ant antfile="${component.dir}/dependency.xml"
100 target="get">
101 <property name="dependency.properties"
102 value="${buildDirectory}/maps/releng/maps/dependencies.properties" />
103 <property name="base.install.dir"
104 value="${buildRoot}" />
105 </ant>
106 <!--fetch the additional pieces to build wst tests -->
david_williams072c6f72006-05-19 10:50:58 +0000107 <!-- is not this done in feature defintions?
david_williams3696f6f2005-12-30 07:59:43 +0000108 <property name="featureOnly" value="false" />
109 <property name="featureAndPlugins" value="true" />
110 <property name="featuresRecursively" value="true" />
111 <ant antfile="genericTargets.xml"
112 dir="${pde.build.scripts}"
113 target="fetchElement">
114 <property name="type" value="feature" />
115 <property name="id" value="org.eclipse.wst" />
116 </ant>
117 <ant antfile="genericTargets.xml"
118 dir="${pde.build.scripts}"
119 target="fetchElement">
120 <property name="type" value="feature" />
121 <property name="id" value="org.eclipse.jst" />
122 </ant>
123 <ant antfile="genericTargets.xml"
124 dir="${pde.build.scripts}"
125 target="fetchElement">
126 <property name="type" value="feature" />
127 <property name="id"
128 value="org.eclipse.wst.tests.feature" />
129 </ant>
david_williams072c6f72006-05-19 10:50:58 +0000130 -->
david_williams3696f6f2005-12-30 07:59:43 +0000131 </target>
ndaib8cedc82005-09-13 18:00:32 +0000132
david_williams3696f6f2005-12-30 07:59:43 +0000133 <!-- ===================================================================== -->
134 <!-- Steps to do before fetching the build elements -->
135 <!-- ===================================================================== -->
136 <target name="preFetch">
137 </target>
ndaib8cedc82005-09-13 18:00:32 +0000138
david_williams3696f6f2005-12-30 07:59:43 +0000139 <!-- ===================================================================== -->
140 <!-- Steps to do after fetching the build elements -->
141 <!-- ===================================================================== -->
142 <target name="postFetch">
143 </target>
ndaib8cedc82005-09-13 18:00:32 +0000144
david_williams3696f6f2005-12-30 07:59:43 +0000145 <!-- ===================================================================== -->
146 <!-- Steps to do before generating the build scripts. -->
147 <!-- ===================================================================== -->
148 <target name="preGenerate">
149 </target>
ndaib8cedc82005-09-13 18:00:32 +0000150
david_williams3696f6f2005-12-30 07:59:43 +0000151 <!-- ===================================================================== -->
152 <!-- Steps to do after generating the build scripts. -->
153 <!-- ===================================================================== -->
154 <target name="postGenerate">
155 </target>
ndaib8cedc82005-09-13 18:00:32 +0000156
157
david_williams3696f6f2005-12-30 07:59:43 +0000158 <!-- ===================================================================== -->
159 <!-- Steps to do before running the build.xmls for the elements being built. -->
160 <!-- ===================================================================== -->
161 <target name="preProcess">
162 </target>
ndaib8cedc82005-09-13 18:00:32 +0000163
david_williams3696f6f2005-12-30 07:59:43 +0000164 <!-- ===================================================================== -->
165 <!-- Steps to do after running the build.xmls for the elements being built. -->
166 <!-- ===================================================================== -->
167 <target name="postProcess">
168 </target>
ndaib8cedc82005-09-13 18:00:32 +0000169
170
david_williams3696f6f2005-12-30 07:59:43 +0000171 <!-- ===================================================================== -->
172 <!-- Steps to do before running assemble. -->
173 <!-- ===================================================================== -->
174 <target name="preAssemble">
175 </target>
ndaib8cedc82005-09-13 18:00:32 +0000176
david_williams3696f6f2005-12-30 07:59:43 +0000177 <!-- ===================================================================== -->
178 <!-- Steps to do after running assemble. -->
179 <!-- ===================================================================== -->
180 <target name="postAssemble">
181 </target>
ndaib8cedc82005-09-13 18:00:32 +0000182
david_williams3696f6f2005-12-30 07:59:43 +0000183 <!-- ===================================================================== -->
184 <!-- Steps to do after the build is done. -->
185 <!-- ===================================================================== -->
186 <target name="postBuild">
ndaib8cedc82005-09-13 18:00:32 +0000187
david_williams3696f6f2005-12-30 07:59:43 +0000188 </target>
ndaib8cedc82005-09-13 18:00:32 +0000189
ndaib8cedc82005-09-13 18:00:32 +0000190
david_williams3696f6f2005-12-30 07:59:43 +0000191 <!-- ===================================================================== -->
192 <!-- Steps to do to test the build results -->
193 <!-- ===================================================================== -->
194 <target name="test">
195 </target>
196
197
198 <!-- ===================================================================== -->
199 <!-- Steps to do to publish the build results -->
200 <!-- ===================================================================== -->
201 <target name="publish">
202 </target>
203
204 <!-- ===================================================================== -->
205 <!-- Default target -->
206 <!-- ===================================================================== -->
207 <target name="noDefault">
208 <echo message="You must specify a target when invoking this file" />
209 </target>
ndaib8cedc82005-09-13 18:00:32 +0000210
211</project>