blob: f6f04ba180cae6556578bd42f0b69f35583d7a22 [file] [log] [blame]
ndaib8cedc82005-09-13 18:00:32 +00001<project name="Build specific targets and properties" default="noDefault" >
2
3<property name="postingDirectory" value="${buildDirectory}" />
4
5<!-- ===================================================================== -->
6<!-- Run a given ${target} on all elements being built -->
7<!-- Add on <ant> task for each top level element being built. -->
8<!-- ===================================================================== -->
9<target name="allElements">
10 <echo message="Target:${target} " />
11 <echo message="basedir: ${basedir}"/>
12 <echo message="component: ${component}"/>
13 <echo message="buildDirectory: ${buildDirectory}"/>
14 <echo message="baseLocation: ${baseLocation}" />
15 <ant antfile="${genericTargets}" target="${target}" >
16 <property name="type" value="feature" />
17 <property name="id" value="org.eclipse.jst" />
18 </ant>
19</target>
20
21<!-- ===================================================================== -->
22<!-- Targets to assemble the built elements for particular configurations -->
23<!-- These generally call the generated assemble scripts (named in -->
24<!-- ${assembleScriptName}) but may also add pre and post processing -->
25<!-- Add one target for each root element and each configuration -->
26<!-- ===================================================================== -->
27
28<target name="assemble.org.eclipse.jst">
29 <property name="archiveName" value="wtp-${buildId}.zip"/>
30 <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
31
32 <mkdir dir="${postingDirectory}/${buildLabel}/checksum" />
33 <checksum file="${postingDirectory}/${buildLabel}/wtp-${buildId}.zip" property="md5"/>
34 <echo message="${md5} *wtp-${buildId}.zip" file="${postingDirectory}/${buildLabel}/checksum/wtp-${buildId}.zip.md5"/>
35</target>
36
37<!-- ===================================================================== -->
38<!-- Check out map files from correct repository -->
39<!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
40<!-- ===================================================================== -->
41 <target name="checkLocal">
ndaid7c6c4e2005-09-13 18:07:51 +000042 <available property="mapsLocal" file="${buildDirectory}/maps/releng" />
ndaib8cedc82005-09-13 18:00:32 +000043 </target>
44 <target name="getMapFiles" depends="checkLocal" unless="mapsLocal">
45
46 <!-- *** change the repo info -->
47 <property name="mapCvsRoot" value=":${cvsProtocol}:${cvsUser}@${cvsServer}:${cvsRoot}" />
48 <property name="mapVersionTag" value="HEAD" />
49 <echo message="${mapCvsRoot} ${mapVersionTag} "></echo>
50 <cvs cvsRoot="${mapCvsRoot}"
ndaid7c6c4e2005-09-13 18:07:51 +000051 package="releng/maps"
ndaib8cedc82005-09-13 18:00:32 +000052 dest="${buildDirectory}/maps"
53 tag="${mapVersionTag}"
54 />
55 <!--tag the map files project-->
56 <antcall target="tagMapFiles" />
57 </target>
58
59 <target name="tagMapFiles" if="tagMaps">
ndaia04ffd52005-09-14 16:28:32 +000060 <cvs dest="${buildDirectory}/maps" command="tag v${buildType}${timestamp}" />
ndaib8cedc82005-09-13 18:00:32 +000061 </target>
62
63
64<!-- ===================================================================== -->
65<!-- Steps to do before setup -->
66<!-- ===================================================================== -->
67<target name="preSetup">
68</target>
69
70<!-- ===================================================================== -->
71<!-- Steps to do after setup but before starting the build proper -->
72<!-- ===================================================================== -->
73<target name="postSetup">
74 <dirname file="${ant.file}" property="component.dir"/>
75 <ant antfile="${component.dir}/dependency.xml" target="get">
ndaid7c6c4e2005-09-13 18:07:51 +000076 <property name="dependency.properties" value="${buildDirectory}/maps/releng/maps/dependencies.properties" />
ndaib8cedc82005-09-13 18:00:32 +000077 <property name="base.install.dir" value="${buildRoot}" />
78 </ant>
79</target>
80
81<!-- ===================================================================== -->
82<!-- Steps to do before fetching the build elements -->
83<!-- ===================================================================== -->
84<target name="preFetch">
85</target>
86
87<!-- ===================================================================== -->
88<!-- Steps to do after fetching the build elements -->
89<!-- ===================================================================== -->
90<target name="postFetch">
91</target>
92
93<!-- ===================================================================== -->
94<!-- Steps to do before generating the build scripts. -->
95<!-- ===================================================================== -->
96<target name="preGenerate">
97</target>
98
99<!-- ===================================================================== -->
100<!-- Steps to do after generating the build scripts. -->
101<!-- ===================================================================== -->
102<target name="postGenerate">
103</target>
104
105
106<!-- ===================================================================== -->
107<!-- Steps to do before running the build.xmls for the elements being built. -->
108<!-- ===================================================================== -->
109<target name="preProcess">
110 <replace dir="${buildDirectory}/plugins" value="${timestamp}" token="@build@">
111 <include name="**/about.mappings" />
112 </replace>
113</target>
114
115<!-- ===================================================================== -->
116<!-- Steps to do after running the build.xmls for the elements being built. -->
117<!-- ===================================================================== -->
118<target name="postProcess">
119 <condition property="logsAvailable">
120 <istrue value="${javacVerbose}" />
121 </condition>
122 <antcall target="gatherLogs" />
123</target>
124
125
126<!-- ===================================================================== -->
127<!-- Steps to do before running assemble. -->
128<!-- ===================================================================== -->
129<target name="preAssemble">
130</target>
131
132<!-- ===================================================================== -->
133<!-- Steps to do after running assemble. -->
134<!-- ===================================================================== -->
135<target name="postAssemble">
136</target>
137
138<!-- ===================================================================== -->
139<!-- Steps to do after the build is done. -->
140<!-- ===================================================================== -->
141<target name="postBuild">
142 <antcall target="postBuild-${buildType}"/>
143</target>
144
145<target name="postBuild-I">
146</target>
147
148<target name="postBuild-N">
149</target>
150
151<target name="postBuild-M">
152</target>
153
154<target name="postBuild-R">
155</target>
156
157<target name="postBuild-S">
158</target>
159
160<target name="postBuild-T">
161</target>
162
163<target name="getEclipseWindows" unless="eclipsefilewin.exists" >
164 <get src="${eclipseURL.win32}" dest="${localDownloads}/${eclipseFile.win32}" />
165</target>
166
167<!-- ===================================================================== -->
168<!-- Steps to do to test the build results -->
169<!-- ===================================================================== -->
170<target name="test">
171</target>
172
173<!-- ===================================================================== -->
174<!-- Steps to do to publish the build results -->
175<!-- ===================================================================== -->
176<target name="publish">
177</target>
178
179<!-- ===================================================================== -->
180<!-- Helper targets -->
181<!-- ===================================================================== -->
182<target name="gatherLogs" if="logsAvailable">
183 <mkdir dir="${buildDirectory}/${buildLabel}/compilelogs" />
184 <antcall target="allElements">
185 <param name="target" value="gatherLogs" />
186 </antcall>
187
188 <unzip dest="${buildDirectory}/${buildLabel}/compilelogs" overwrite="true">
189 <fileset dir="${buildDirectory}/features/org.eclipse.jst">
190 <include name="*.log.zip" />
191 </fileset>
192 </unzip>
193</target>
194
195<target name="clean" unless="noclean">
196 <antcall target="allElements">
197 <param name="target" value="cleanElement" />
198 </antcall>
199</target>
200
201<!-- ===================================================================== -->
202<!-- Default target -->
203<!-- ===================================================================== -->
204<target name="noDefault">
205 <echo message="You must specify a target when invoking this file" />
206</target>
207
208</project>