blob: 04f31fd4a0055a21bcf8fdf183296f5289ba6399 [file] [log] [blame]
rsrinivasanac1abde2006-01-09 18:29:51 +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.jsf" />
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.jsf">
david_williamsd30a8542006-02-16 07:20:44 +000029 <property name="archiveName" value="wtp-jsf-${buildLabel}.zip"/>
rsrinivasanac1abde2006-01-09 18:29:51 +000030 <ant antfile="${assembleScriptName}" dir="${buildDirectory}"/>
31
32 <mkdir dir="${postingDirectory}/${buildLabel}/checksum" />
david_williamsd30a8542006-02-16 07:20:44 +000033 <checksum file="${postingDirectory}/${buildLabel}/wtp-jsf-${buildLabel}.zip" property="md5"/>
34 <echo message="${md5} *wtp-${buildLabel}.zip" file="${postingDirectory}/${buildLabel}/checksum/wtp-${buildLabel}.zip.md5"/>
rsrinivasanac1abde2006-01-09 18:29:51 +000035</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">
rsrinivasan3f519d02006-01-11 01:29:37 +000042 <available property="mapsLocal" file="${buildDirectory}/maps/releng-jsf" />
rsrinivasanac1abde2006-01-09 18:29:51 +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
51 <echo message="${mapVersionTag} ${mapVersionTag} "></echo>
52
rsrinivasanac1abde2006-01-09 18:29:51 +000053 <cvs cvsRoot="${mapCvsRoot}"
rsrinivasan3f519d02006-01-11 01:29:37 +000054 package="releng-jsf"
rsrinivasanac1abde2006-01-09 18:29:51 +000055 dest="${buildDirectory}/maps"
56 tag="${mapVersionTag}"
57 />
58
59 <!--tag the map files project-->
60 <antcall target="tagMapFiles" >
61 <param name="mapCvsRoot" value="${mapCvsRoot}" />
62 </antcall>
63 </target>
64
65 <target name="tagMapFiles" if="tagMaps">
66 <cvs cvsRoot="${mapCvsRoot}" dest="${buildDirectory}/maps" command="tag v${buildType}${timestamp}" />
67 </target>
68
69
70<!-- ===================================================================== -->
71<!-- Steps to do before setup -->
72<!-- ===================================================================== -->
73<target name="preSetup">
74</target>
75
76<!-- ===================================================================== -->
77<!-- Steps to do after setup but before starting the build proper -->
78<!-- ===================================================================== -->
79<target name="postSetup">
80 <dirname file="${ant.file}" property="component.dir"/>
81 <ant antfile="${component.dir}/dependency.xml" target="get">
82 <property name="dependency.properties" value="${buildDirectory}/maps/releng/maps/dependencies.properties" />
83 <property name="base.install.dir" value="${buildRoot}" />
84 </ant>
85</target>
86
87<!-- ===================================================================== -->
88<!-- Steps to do before fetching the build elements -->
89<!-- ===================================================================== -->
90<target name="preFetch">
91</target>
92
93<!-- ===================================================================== -->
94<!-- Steps to do after fetching the build elements -->
95<!-- ===================================================================== -->
96<target name="postFetch">
97</target>
98
99<!-- ===================================================================== -->
100<!-- Steps to do before generating the build scripts. -->
101<!-- ===================================================================== -->
102<target name="preGenerate">
103</target>
104
105<!-- ===================================================================== -->
106<!-- Steps to do after generating the build scripts. -->
107<!-- ===================================================================== -->
108<target name="postGenerate">
109</target>
110
111
112<!-- ===================================================================== -->
113<!-- Steps to do before running the build.xmls for the elements being built. -->
114<!-- ===================================================================== -->
115<target name="preProcess">
116 <replace dir="${buildDirectory}/plugins" value="${timestamp}" token="@build@">
117 <include name="**/about.mappings" />
118 </replace>
119</target>
120
121<!-- ===================================================================== -->
122<!-- Steps to do after running the build.xmls for the elements being built. -->
123<!-- ===================================================================== -->
124<target name="postProcess">
125 <condition property="logsAvailable">
126 <istrue value="${javacVerbose}" />
127 </condition>
128 <antcall target="gatherLogs" />
129</target>
130
131
132<!-- ===================================================================== -->
133<!-- Steps to do before running assemble. -->
134<!-- ===================================================================== -->
135<target name="preAssemble">
136</target>
137
138<!-- ===================================================================== -->
139<!-- Steps to do after running assemble. -->
140<!-- ===================================================================== -->
141<target name="postAssemble">
142</target>
143
144<!-- ===================================================================== -->
145<!-- Steps to do after the build is done. -->
146<!-- ===================================================================== -->
147<target name="postBuild">
148 <antcall target="postBuild-${buildType}"/>
149 <property name="assemble-all" value="${buildDirectory}/assemble-all" />
david_williamsd30a8542006-02-16 07:20:44 +0000150 <unzip dest="${assemble-all}" src="${postingDirectory}/${buildLabel}/wtp-jsf-${buildLabel}.zip" overwrite="true" />
151 <zip destfile="${postingDirectory}/${buildLabel}/wtp-jsf-${buildLabel}.zip" basedir="${assemble-all}" />
152 <delete file="${postingDirectory}/${buildLabel}/checksum/wtp-jsf-${buildLabel}.zip.md5" failonerror="false"/>
153 <checksum file="${postingDirectory}/${buildLabel}/wtp-jsf-${buildLabel}.zip" property="md5combined"/>
154 <echo message="${md5combined} *wtp-jsf-${buildLabel}.zip" file="${postingDirectory}/${buildLabel}/checksum/wtp-jsf-${buildLabel}.zip.md5" />
rsrinivasanac1abde2006-01-09 18:29:51 +0000155</target>
156
157<target name="postBuild-I">
158
159</target>
160
161<target name="postBuild-N">
162</target>
163
164<target name="postBuild-M">
165</target>
166
167<target name="postBuild-R">
168</target>
169
170<target name="postBuild-S">
171</target>
172
173<target name="postBuild-T">
174</target>
175
176<target name="getEclipseWindows" unless="eclipsefilewin.exists" >
177 <get src="${eclipseURL.win32}" dest="${localDownloads}/${eclipseFile.win32}" />
178</target>
179
180<!-- ===================================================================== -->
181<!-- Steps to do to test the build results -->
182<!-- ===================================================================== -->
183<target name="test">
184</target>
185
186<!-- ===================================================================== -->
187<!-- Steps to do to publish the build results -->
188<!-- ===================================================================== -->
189<target name="publish">
190</target>
191
192<!-- ===================================================================== -->
193<!-- Helper targets -->
194<!-- ===================================================================== -->
195<target name="gatherLogs" if="logsAvailable">
196 <mkdir dir="${buildDirectory}/${buildLabel}/compilelogs" />
197 <antcall target="allElements">
198 <param name="target" value="gatherLogs" />
199 </antcall>
200
201 <unzip dest="${buildDirectory}/${buildLabel}/compilelogs" overwrite="true">
202 <fileset dir="${buildDirectory}/features/org.eclipse.jsf">
203 <include name="*.log.zip" />
204 </fileset>
205 </unzip>
206</target>
207
208<target name="clean" unless="noclean">
209 <antcall target="allElements">
210 <param name="target" value="cleanElement" />
211 </antcall>
212</target>
213
214<!-- ===================================================================== -->
215<!-- Default target -->
216<!-- ===================================================================== -->
217<target name="noDefault">
218 <echo message="You must specify a target when invoking this file" />
219</target>
220
221</project>