blob: fa4a6844361ce7a2577d7368ed45d8af11c1887f [file] [log] [blame]
rsrinivasan01cf8ac2006-04-10 19:37:11 +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
15 <ant antfile="${genericTargets}" target="${target}" >
16 <property name="type" value="feature" />
rsrinivasand0db32f2006-05-03 20:11:09 +000017 <property name="id" value="org.eclipse.jst.jsf.tests.feature" />
rsrinivasan01cf8ac2006-04-10 19:37:11 +000018 </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
rsrinivasand0db32f2006-05-03 20:11:09 +000028<target name="assemble.org.eclipse.jst.jsf.tests.feature">
rsrinivasan01cf8ac2006-04-10 19:37:11 +000029 <property name="archiveName" value="wtp-jsf-Automated-Tests-${buildLabel}.zip" />
30
31 <ant antfile="${assembleScriptName}" dir="${buildDirectory}" />
ndaicad2aae2006-05-20 08:06:04 +000032 <ant antfile="${wtp.builder.home}/scripts/build/buildutilities.xml" target="unpackUpdateJarsAndCreateZippedPackages">
33 <property name="postingDirectory" value="${postingDirectory}"/>
34 <property name="buildDirectory" value="${buildDirectory}"/>
35 <property name="buildLabel" value="${buildLabel}"/>
36 <property name="archiveName" value="${archiveName}"/>
37 </ant>
38
39 <ant antfile="${wtp.builder.home}/scripts/build/buildutilities.xml" target="createChecksums">
40 <property name="postingDirectory" value="${postingDirectory}" />
41 <property name="buildLabel" value="${buildLabel}"/>
42 <property name="archiveName" value="${archiveName}"/>
43 </ant>
44
rsrinivasan01cf8ac2006-04-10 19:37:11 +000045</target>
46
47
48<!-- ===================================================================== -->
49<!-- Check out map files from correct repository -->
50<!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
51<!-- ===================================================================== -->
52<target name="checkLocal">
53 <available property="mapsLocal" file="${buildDirectory}/maps/releng-jsf" />
54</target>
55
56<target name="getMapFiles" depends="checkLocal" unless="mapsLocal">
57
58 <!-- *** change the repo info -->
59 <property name="mapCvsRoot" value=":${cvsProtocol}:${cvsUser}@${cvsServer}:${cvsRoot}" />
60 <property name="mapVersionTag" value="HEAD" />
61 <property name="cvsPackage" value="releng-jsf" />
62 <echo message="${mapCvsRoot} ${mapVersionTag} "/>
63 <echo message="cvsPackage = ${cvsPackage} "/>
64
65 <cvs cvsRoot="${mapCvsRoot}" package="${cvsPackage}" dest="${buildDirectory}/maps" tag="${mapVersionTag}" />
66 <!--tag the map files project-->
67 <antcall target="tagMapFiles">
68 <param name="mapCvsRoot" value="${mapCvsRoot}" />
69 </antcall>
70</target>
71
72<target name="tagMapFiles" if="tagMaps">
73 <cvs cvsRoot="${mapCvsRoot}" dest="${buildDirectory}/maps" command="tag v${buildType}${timestamp}" />
74</target>
75
76<!-- ===================================================================== -->
77<!-- Steps to do before setup -->
78<!-- ===================================================================== -->
79<target name="preSetup">
80</target>
81
82<!-- ===================================================================== -->
83<!-- Steps to do after setup but before starting the build proper -->
84<!-- ===================================================================== -->
85<target name="postSetup">
86 <dirname file="${ant.file}" property="component.dir" />
87 <echo message="ant.file: ${ant.file}" />
88 <echo message="component.dir: ${component.dir}" />
89
90 <ant antfile="${component.dir}/dependency.xml" target="get">
ndaiacc4d0d2006-05-19 17:10:33 +000091 <property name="dependency.properties" value="${buildDirectory}/maps/releng/maps/dependencies.properties" />
rsrinivasan01cf8ac2006-04-10 19:37:11 +000092 <property name="base.install.dir" value="${buildRoot}" />
93 </ant>
94 <!--fetch the additional pieces to build JSF tests -->
95 <property name="featureOnly" value="false" />
96 <property name="featureAndPlugins" value="true" />
97 <property name="featuresRecursively" value="true" />
98
99 <ant antfile="${genericTargets}" dir="${pde.build.scripts}" target="fetchElement">
100 <property name="type" value="feature" />
rsrinivasand0db32f2006-05-03 20:11:09 +0000101 <property name="id" value="org.eclipse.jst.jsf.tests.feature" />
rsrinivasan01cf8ac2006-04-10 19:37:11 +0000102 </ant>
ndaib26f64c2006-05-04 07:58:54 +0000103
104 <ant antfile="${genericTargets}" dir="${pde.build.scripts}" target="fetchElement">
105 <property name="type" value="feature" />
106 <property name="id" value="org.eclipse.wst" />
107 </ant>
108 <ant antfile="${genericTargets}" dir="${pde.build.scripts}" target="fetchElement">
109 <property name="type" value="feature" />
110 <property name="id" value="org.eclipse.jst" />
111 </ant>
rsrinivasan01cf8ac2006-04-10 19:37:11 +0000112</target>
113
114<!-- ===================================================================== -->
115<!-- Steps to do before fetching the build elements -->
116<!-- ===================================================================== -->
117<target name="preFetch">
118</target>
119
120<!-- ===================================================================== -->
121<!-- Steps to do after fetching the build elements -->
122<!-- ===================================================================== -->
123<target name="postFetch">
124</target>
125
126<!-- ===================================================================== -->
127<!-- Steps to do before generating the build scripts. -->
128<!-- ===================================================================== -->
129<target name="preGenerate">
130</target>
131
132<!-- ===================================================================== -->
133<!-- Steps to do after generating the build scripts. -->
134<!-- ===================================================================== -->
135<target name="postGenerate">
136</target>
137
138
139<!-- ===================================================================== -->
140<!-- Steps to do before running the build.xmls for the elements being built. -->
141<!-- ===================================================================== -->
142<target name="preProcess">
143</target>
144
145<!-- ===================================================================== -->
146<!-- Steps to do after running the build.xmls for the elements being built. -->
147<!-- ===================================================================== -->
148<target name="postProcess">
149</target>
150
151
152<!-- ===================================================================== -->
153<!-- Steps to do before running assemble. -->
154<!-- ===================================================================== -->
155<target name="preAssemble">
156</target>
157
158<!-- ===================================================================== -->
159<!-- Steps to do after running assemble. -->
160<!-- ===================================================================== -->
161<target name="postAssemble">
162</target>
163
164<!-- ===================================================================== -->
165<!-- Steps to do after the build is done. -->
166<!-- ===================================================================== -->
167<target name="postBuild">
168
rsrinivasan01cf8ac2006-04-10 19:37:11 +0000169</target>
170
171<!-- ===================================================================== -->
172<!-- Steps to test the build results -->
173<!-- ===================================================================== -->
174<target name="test" unless="dontRunTests">
175</target>
176
177<!-- ===================================================================== -->
178<!-- Steps to do to publish the build results -->
179<!-- ===================================================================== -->
180<target name="publish">
181</target>
182
183<!-- ===================================================================== -->
184<!-- Default target -->
185<!-- ===================================================================== -->
186<target name="noDefault">
187 <echo message="You must specify a target when invoking this file" />
188</target>
189
190</project>