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