blob: 2419f456b71d60462127935c8d749e87d1b5ba0e [file] [log] [blame]
david_williams94ff5912011-11-24 05:27:20 +00001<?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 This script is an example (only), to create some zips with limited set of features only.
4 Limited, specialized usefulness, so they are not linked or
5 advertised. That is, could change at any time. This differs from "createzips.xml" in that
6 a) its more "stand alone" (doesn't depend on utilities funcitons) and b) more significantly,
7 get use the master repo from HTTP instead of local file system.
8 -->
9<project
10 default="build"
11 basedir=".">
12 <!--
13 These properties are normally set by calling task, but for
14 "local" tests from command line, they can be set here
15 -->
16 <property
17 name="buildSource"
18 value="http://build.eclipse.org/webtools/committers/wtp-R3.2.5-M/20111027122637/"/>
19 <property
20 name="buildLabel"
21 value="R-3.2.5-20111027122637"/>
22 <property
23 name="workingDirectory"
24 value="/home/davidw/temp/${buildLabel}"/>
25 <property
26 name="buildLabel"
27 value="R-3.2.5-20111027122637"/>
28 <echo message="buildSource: ${buildSource}"/>
29 <echo message="buildLabel: ${buildLabel}"/>
30 <echo message="workingDirectory: ${workingDirectory}"/>
31
32 <!--
33 three convenience variables to help avoid typos, etc. Should
34 never need to be changed
35 -->
36 <property
37 name="tempDir"
38 value="${workingDirectory}/${buildLabel}/tempdir"/>
39 <property
40 name="tempRunnableEclipse"
41 value="${tempDir}/eclipse"/>
42 <property
43 name="tempRepo"
44 value="${workingDirectory}/${buildLabel}/temprepo"/>
45 <target name="build">
46
47 <antcall target="createNoOptionalZip">
48 <param
49 name="newarchiveName"
50 value="wtp-noop-${buildLabel}.zip"/>
51 </antcall>
52 <!--
53 <antcall target="createNoOptionalSDKZip">
54 <param
55 name="newarchiveName"
56 value="wtp-sdk-noop-${buildLabel}.zip"/>
57 </antcall>
58
59 <antcall target="createNoOptionalTestZip">
60 <param
61 name="newarchiveName"
62 value="wtp-tests-noop-${buildLabel}.zip"/>
63 </antcall>
64 -->
65 </target>
66 <target name="createNoOptionalZip">
67 <antcall
68 target="premirrortasks"/>
69 <p2.mirror
70 source="${buildSource}/${buildLabel}/repository"
71 destination="${tempRepo}"
72 log="${workingDirectory}/${buildLabel}/mirrorlog-${newarchiveName}.log"
73 verbose="true">
74 <slicingoptions
75 followstrict="true"
76 includeNonGreedy="false"
77 includeOptional="false"/>
78 <iu id="org.eclipse.wst.web_ui.feature.feature.group"/>
79 <iu id="org.eclipse.jst.enterprise_ui.feature.feature.group"/>
80 <iu id="org.eclipse.jpt.feature.feature.group"/>
81 <iu id="org.eclipse.wst.xml_ui.feature.feature.group"/>
82 <iu id="org.eclipse.wst.jsdt.feature.feature.group"/>
83 <iu id="org.eclipse.wst.common.fproj.feature.group"/>
84 <iu id="org.eclipse.wst.server_adapters.feature.feature.group"/>
85 <iu id="org.eclipse.jst.common.fproj.enablement.jdt.feature.group"/>
86 <iu id="org.eclipse.jst.server_ui.feature.feature.group"/>
87 <iu id="org.eclipse.jst.server_adapters.feature.feature.group"/>
88 <iu id="org.eclipse.jst.server_adapters.ext.feature.feature.group"/>
89 <iu id="org.eclipse.jst.web_ui.feature.feature.group"/>
90 <iu id="org.eclipse.jsf.feature.feature.group"/>
91 </p2.mirror>
92 <antcall
93 target="postmirrortasks"/>
94 </target>
95 <target name="createNoOptionalSDKZip">
96 <antcall
97 target="premirrortasks"/>
98 <p2.mirror
99 source="${workingDirectory}/${buildLabel}/repository"
100 destination="${tempRepo}"
101 log="${workingDirectory}/${buildLabel}/mirrorlog-${newarchiveName}.log"
102 verbose="true">
103 <slicingoptions
104 followstrict="true"
105 includeNonGreedy="false"
106 includeOptional="false"/>
107 <iu id="org.eclipse.wst.web_sdk.feature.feature.group"/>
108 <iu id="org.eclipse.jst.enterprise_sdk.feature.feature.group"/>
109 <iu id="org.eclipse.jpt.jpa_sdk.feature.feature.group"/>
110 <iu id="org.eclipse.wst.xml_sdk.feature.feature.group"/>
111 <iu id="org.eclipse.wst.jsdt_sdk.feature.feature.group"/>
112 <iu id="org.eclipse.wst.common.fproj.sdk.feature.group"/>
113 <iu id="org.eclipse.wst.server_adapters.sdk.feature.feature.group"/>
114 <iu id="org.eclipse.jst.common.fproj.enablement.jdt.sdk.feature.group"/>
115 <iu id="org.eclipse.jst.server_sdk.feature.feature.group"/>
116 <iu id="org.eclipse.jst.server_adapters.sdk.feature.feature.group"/>
117 <iu id="org.eclipse.jst.server_adapters.ext.sdk.feature.feature.group"/>
118 <iu id="org.eclipse.jst.web_sdk.feature.feature.group"/>
119 <iu id="org.eclipse.jsf_sdk.feature.feature.group"/>
120 </p2.mirror>
121 <ant
122 target="postmirrortasks"/>
123 </target>
124 <target name="createNoOptionalTestZip">
125 <antcall
126 target="premirrortasks"/>
127 <p2.mirror
128 source="${workingDirectory}/${buildLabel}/repository"
129 destination="${tempRepo}"
130 log="${workingDirectory}/${buildLabel}/mirrorlog-${newarchiveName}.log"
131 verbose="true">
132 <slicingoptions
133 followstrict="true"
134 includeNonGreedy="false"
135 includeOptional="false"/>
136 <!--
137 may eventually want to break jpt tests into "core" parts and "eclipselink" parts. For now, exclude all.
138 <iu
139 id="org.eclipse.jpt.jpa.tests.feature.feature.group"/>
140 <iu
141 id="org.eclipse.jpt.jpa.eclipselink.tests.feature.feature.group"/>
142 -->
143 <iu id="org.eclipse.jst.enterprise_tests.feature.feature.group"/>
144 <iu id="org.eclipse.jst.jsf.tests.feature.feature.group"/>
145 <iu id="org.eclipse.jst.server_adapters.ext_tests.feature.feature.group"/>
146 <iu id="org.eclipse.jst.server_tests.feature.feature.group"/>
147 <iu id="org.eclipse.jst.web_tests.feature.feature.group"/>
148 <iu id="org.eclipse.wst.common_tests.feature.feature.group"/>
149 <iu id="org.eclipse.wst.jsdt_tests.feature.feature.group"/>
150 <iu id="org.eclipse.wst.server_tests.feature.feature.group"/>
151 <iu id="org.eclipse.wst.web_tests.feature.feature.group"/>
152 <iu id="org.eclipse.wst.ws_tests.feature.feature.group"/>
153 <iu id="org.eclipse.wst.xml_tests.feature.feature.group"/>
154 <iu id="org.eclipse.wtp.releng.tests.feature.feature.group"/>
155 </p2.mirror>
156 <antcall
157 target="postmirrortasks"/>
158 </target>
159 <target name="premirrortasks">
160 <!--
161 if desired zip already exists, remove it. It normally would
162 not exist, but might if restarting a build, or something
163 -->
164 <delete
165 file="${workingDirectory}/${buildLabel}/${newarchiveName}"
166 quiet="true"
167 failonerror="false"/>
168 </target>
169 <target name="createzippedrepo">
170 <!-- are these required?
171 <copy
172 todir="${tempRunnableEclipse}"
173 overwrite="false">
174 <fileset
175 dir="${wtp.builder.home}/rootfiles">
176 </fileset>
177 </copy>
178 -->
179 <zip
180 destfile="${workingDirectory}/${buildLabel}/components/${newarchiveName}"
181 basedir="${tempRepo}"/>
182 <delete
183 dir="${tempRepo}"
184 quiet="true"
185 failonerror="false"/>
186 <ant
187 antfile="${wtp.builder.home}/scripts/build/buildutilitiesp2.xml"
188 target="createChecksums">
189 <property
190 name="subdir"
191 value="components/"/>
192 <property
193 name="archiveName"
194 value="${newarchiveName}"/>
195 </ant>
196 </target>
197 <target name="postmirrortasks">
198 <p2.repo2runnable>
199 <repository location="${tempRunnableEclipse}"/>
200 <source>
201 <repository location="${tempRepo}"/>
202 </source>
203 </p2.repo2runnable>
204 <!--
205 remove content.jar and artifacts.jar, since not in
206 traditional zips
207 -->
208 <delete
209 file="${tempRunnableEclipse}/artifacts.jar"
210 quiet="true"
211 failonerror="false"/>
212 <delete
213 file="${tempRunnableEclipse}/content.jar"
214 quiet="true"
215 failonerror="false"/>
216 <!-- copy in standard root license files -->
217 <copy
218 failonerror="false"
219 todir="${tempRunnableEclipse}"
220 overwrite="false">
221 <fileset dir="${wtp.builder.home}/rootfiles">
222 </fileset>
223 </copy>
224 <zip
225 destfile="${workingDirectory}/${buildLabel}/${newarchiveName}"
226 basedir="${tempDir}"/>
227 <delete
228 dir="${tempDir}"
229 quiet="true"
230 failonerror="false"/>
231 <delete
232 dir="${tempRepo}"
233 quiet="true"
234 failonerror="false"/>
235 </target>
236</project>