Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 1ecb291ba2917206c0e468ca714b76c2e1703243 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
<?xml version="1.0"?>
<!--
	Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.
	All rights reserved. This program and the accompanying materials
	are made available under the terms of the Eclipse Public License v1.0
	which accompanies this distribution, and is available at
	http://www.eclipse.org/legal/epl-v10.html

	Contributors:
	  Eike Stepper - initial API and implementation
-->
<project name="CDO">

	<property file="build.properties" />
	<property environment="hudson" />

	<taskdef resource="net/sf/antcontrib/antlib.xml">
		<classpath>
			<pathelement location="C:\develop\bin\ant-contrib\ant-contrib-1.0b3.jar" />
			<pathelement location="${ant.contrib}" />
		</classpath>
	</taskdef>

	<macrodef name="eclipse.launch">
		<attribute name="app" />
		<element name="properties" optional="true" />
		<element name="args" optional="true" />
		<sequential>
			<property name="@{app}.deploy.dir" value="${tools}/@{app}" />
			<pathconvert property="@{app}.launcher">
				<first count="1">
					<sort>
						<fileset dir="${@{app}.deploy.dir}/plugins" includes="**/org.eclipse.equinox.launcher_*.jar" />
						<reverse xmlns="antlib:org.apache.tools.ant.types.resources.comparators">
							<date />
						</reverse>
					</sort>
				</first>
			</pathconvert>
			<java fork="true" jar="${@{app}.launcher}" dir="${@{app}.deploy.dir}" failonerror="true">
				<env key="no_proxy" value="${no.proxy}" />
				<properties />
				<args />
			</java>
		</sequential>
	</macrodef>

	<macrodef name="buckminster">
		<attribute name="command" />
		<attribute name="workspace" default="${ws}" />
		<element name="sysproperties" optional="true" />
		<element name="globargs" optional="true" />
		<element name="cmdargs" optional="true" />
		<sequential>
			<eclipse.launch app="buckminster">
				<properties>
					<sysproperty key="bugfix.288796" value="true" />
					<sysproperties />
				</properties>
				<args>
					<jvmarg value="-Xmx4096m" />
					<jvmarg value="-Declipse.p2.mirrors=false" />
					<jvmarg value="-Declipse.p2.unsignedPolicy=allow" />
					<jvmarg value="-Dsvnkit.ssh2.persistent=false" />
					<arg value="-data" />
					<arg value="@{workspace}" />
					<arg value="--loglevel" />
					<arg value="${hudson.LOGLEVEL}" />
					<arg value="--displaystacktrace" />
					<globargs />
					<arg value="@{command}" />
					<arg value="-P" />
					<arg value="${properties.tmp}" />
					<cmdargs />
				</args>
			</eclipse.launch>
		</sequential>
	</macrodef>

	<macrodef name="generate.product">
		<attribute name="id" />
		<attribute name="profile" />
		<attribute name="platform" />
		<attribute name="os" />
		<attribute name="ws" />
		<attribute name="arch" />
		<attribute name="priority" />
		<sequential>
			<if>
				<or>
					<not>
						<isset property="platform" />
					</not>
					<equals arg1="${platform}" arg2="@{platform}" />
				</or>
				<then>
					<echo message="" />
					<echo message="Generating @{profile} for @{platform}" />
					<mkdir dir="${temp.products}/@{profile}-@{platform}" />

					<eclipse.launch app="director">
						<properties>
							<sysproperty key="eclipse.p2.mirrors" value="false" />
						</properties>
						<args>
							<arg value="-r" />
							<arg value="file:${hudson.WORKSPACE}" />
							<arg value="-r" />
							<arg value="${train.releases}" />
							<arg value="-r" />
							<arg value="${eclipse.updates}" />
							<arg value="-r" />
							<arg value="${eclipse.milestones}" />
							<arg value="-d" />
							<arg value="${temp.products}/@{profile}-@{platform}" />
							<arg value="-p" />
							<arg value="@{profile}" />
							<arg value="-i" />
							<arg value="@{id}" />
							<arg value="-p2.os" />
							<arg value="@{os}" />
							<arg value="-p2.ws" />
							<arg value="@{ws}" />
							<arg value="-p2.arch" />
							<arg value="@{arch}" />
						</args>
					</eclipse.launch>

					<delete includeemptydirs="true" quiet="true">
						<fileset dir="${temp.products}/@{profile}-@{platform}">
							<include name="p2/**" />
							<include name="launcher.exe" />
							<include name="eclipsec.exe" />
						</fileset>
					</delete>

					<copy todir="${temp.products}/@{profile}-@{platform}" failonerror="true">
						<fileset dir="${ws}/features/org.eclipse.emf.cdo.license-feature/rootfiles">
							<include name="epl-v10.html" />
							<include name="notice.html" />
						</fileset>
					</copy>

					<zip destfile="${zips}/emf-cdo-${build.qualifier}-@{profile}-@{platform}.zip">
						<fileset dir="${temp.products}/@{profile}-@{platform}">
							<include name="**" />
						</fileset>
					</zip>

					<echo message="description=for execution on @{platform}."
					      file="${zips}/emf-cdo-${build.qualifier}-@{profile}-@{platform}.properties" />
					<echo message="priority=@{priority}"
					      file="${zips}/emf-cdo-${build.qualifier}-@{profile}-@{platform}.properties"
					      append="true" />
				</then>
			</if>
		</sequential>
	</macrodef>

	<!-- =============== -->
	<!-- Init Properties -->
	<!-- =============== -->

	<target name="-init.properties">
		<echo message="stream = ${stream}" />
		<echo message="branch = ${branch}" />
		<echo message="train = ${train}" />

		<condition property="no.proxy" value="${hudson.no_proxy}, dev.eclipse.org" else="dev.eclipse.org">
			<isset property="hudson.no_proxy" />
		</condition>

		<property name="checkout" value="/dev/null" />
		<property name="releng" location="${checkout}/plugins/org.eclipse.emf.cdo.releng" />
		<property name="test.report" location="${hudson.WORKSPACE}/test-report.xml" />

		<property name="tools" location="${hudson.WORKSPACE}/tools" />
		<property name="result" location="${hudson.WORKSPACE}/result" />

		<property name="ws" location="${result}/ws" />
		<property name="tp" location="${result}/tp" />

		<property name="buckminster.output.root" location="${result}/output" />
		<property name="buckminster.temp.root" location="${result}/temp" />
	</target>

	<!-- ========== -->
	<!-- Init Clean -->
	<!-- ========== -->

	<target name="-init.clean" depends="-init.properties">
		<delete includeemptydirs="true" failonerror="true" quiet="true">
			<fileset dir="${hudson.WORKSPACE}">
				<include name="binary/**" />
				<include name="features/**" />
				<include name="plugins/**" />
				<include name="zips/**" />
				<include name="*.jar" />
				<include name="*.xml" />
				<include name="*.html" />
			</fileset>
		</delete>

		<delete dir="${buckminster.output.root}" includeemptydirs="true" failonerror="true" quiet="true" />
		<delete dir="${buckminster.temp.root}" includeemptydirs="true" failonerror="true" quiet="true" />

		<mkdir dir="${result}" />
	</target>

	<!-- ========== -->
	<!-- Init Tools -->
	<!-- ========== -->

	<target name="-init.tools" depends="-init.clean">
		<if>
			<equals arg1="${hudson.CLEAN_TOOLS}" arg2="true" />
			<then>
				<echo message="Cleaning tools" />
				<delete dir="${tools}/director" includeemptydirs="true" failonerror="true" quiet="true" />
				<delete dir="${tools}/buckminster" includeemptydirs="true" failonerror="true" quiet="true" />
			</then>
		</if>

		<if>
			<not>
				<available file="${tools}/director/director" />
			</not>
			<then>
				<echo message="" />
				<echo message="Installing director" />
				<tempfile destdir="${java.io.tmpdir}"
				          prefix="director-"
				          suffix=".zip"
				          property="director.zip"
				          deleteonexit="true" />
				<get src="${director}" dest="${director.zip}" />
				<mkdir dir="${tools}" />
				<unzip src="${director.zip}" dest="${tools}" />
				<delete file="${director.zip}" />
			</then>
		</if>

		<if>
			<not>
				<available file="${tools}/buckminster/buckminster" />
			</not>
			<then>
				<echo message="" />
				<echo message="Installing buckminster" />
				<eclipse.launch app="director">
					<properties>
						<sysproperty key="eclipse.p2.mirrors" value="false" />
					</properties>
					<args>
						<arg value="-r" />
						<arg value="${buckminster.headless}" />
						<arg value="-r" />
						<arg value="${buckminster.external}" />
						<arg value="-d" />
						<arg value="${tools}/buckminster" />
						<arg value="-p" />
						<arg value="Buckminster" />
						<arg value="-i" />
						<arg value="org.eclipse.buckminster.cmdline.product" />
						<arg value="-i" />
						<arg value="org.eclipse.buckminster.core.headless.feature.feature.group" />
						<arg value="-i" />
						<arg value="org.eclipse.buckminster.pde.headless.feature.feature.group" />
						<arg value="-i" />
						<arg value="org.eclipse.buckminster.subversive.headless.feature.feature.group" />
					</args>
				</eclipse.launch>
			</then>
		</if>
	</target>

	<!-- ================ -->
	<!-- Init Build Infos -->
	<!-- ================ -->

	<target name="-init.buildinfos" depends="-init.clean">
		<if>
			<not>
				<isset property="build.trigger" />
			</not>
			<then>
				<xmlproperty keeproot="false">
					<url url="${hudson.BUILD_URL}/api/xml?tree=actions[causes[shortDescription]]" />
				</xmlproperty>
				<loadresource property="build.trigger">
					<propertyresource name="action.cause.shortDescription" />
					<filterchain>
						<replaceregex pattern="^Started by " replace="" />
						<replaceregex pattern="^Gestartet durch " replace="" />
						<replaceregex pattern="Benutzer" replace="user" />
					</filterchain>
				</loadresource>
			</then>
		</if>
		<echo message="build.trigger = ${build.trigger}" />

		<if>
			<equals arg1="${hudson.BUILD_TYPE}" arg2="&lt;default&gt;" />
			<then>
				<condition property="build.type" value="${weekly}" else="N">
					<equals arg1="${build.trigger}" arg2="timer" />
				</condition>
			</then>
			<else>
				<property name="build.type" value="${hudson.BUILD_TYPE}" />
			</else>
		</if>
		<echo message="build.type = ${build.type}" />

		<property name="build.timestamp" value="${hudson.BUILD_ID}" />
		<echo message="build.timestamp = ${build.timestamp}" />

		<tempfile property="build.qualifier.tmp"
		          destdir="${java.io.tmpdir}"
		          prefix="build-qualifier-"
		          suffix=".tmp"
		          deleteonexit="true" />
		<echo message="build.qualifier=${build.type}${build.timestamp}" file="${build.qualifier.tmp}" />
		<replaceregexp file="${build.qualifier.tmp}">
			<regexp pattern="([0-9]*)-([0-9]*)-([0-9]*)_([0-9]*)-([0-9]*)-([0-9]*)" />
			<substitution expression="\1\2\3-\4\5" />
		</replaceregexp >
		<property file="${build.qualifier.tmp}" />
		<echo message="build.qualifier = ${build.qualifier}" />
		<echoxml file="${hudson.WORKSPACE}/build-info.xml">
			<build stream="${stream}"
			       branch="${branch}"
			       train="${train}"
			       eclipse="${eclipse}"
			       emf="${emf}"
			       type="${build.type}"
			       timestamp="${build.timestamp}"
			       qualifier="${build.qualifier}"
			       trigger="${build.trigger}"
			       hudson="${hudson.HUDSON_URL}"
			       revision="${hudson.SVN_REVISION}"
			       job="${hudson.JOB_NAME}"
			       number="${hudson.BUILD_NUMBER}" />
		</echoxml>

		<condition property="site.signing" value="true" else="false">
			<and>
				<not>
					<equals arg1="${build.type}" arg2="N" />
				</not>
				<equals arg1="${hudson.HUDSON_URL}" arg2="https://hudson.eclipse.org/hudson/" />
			</and>
		</condition>
		<echo message="site.signing = ${site.signing}" />

		<if>
			<equals arg1="${site.signing}" arg2="true" />
			<then>
				<property name="eclipse.staging.area"
				          value="/shared/download-staging.priv/modeling/emf/cdo/${hudson.JOB_NAME}" />
				<echo message="eclipse.staging.area = ${eclipse.staging.area}" />
			</then>
		</if>

		<echo message="" />

		<property name="properties.tmp" value="${result}${file.separator}buckminster.properties" />
		<echoproperties destfile="${properties.tmp}">
			<propertyset negate="true">
				<propertyref name="basedir" />
				<propertyref name="eclipse.home" />
				<propertyref name="properties.tmp" />
				<propertyref name="line.separator" />
				<propertyref name="path.separator" />
				<propertyref prefix="ant." />
				<propertyref prefix="file." />
				<propertyref prefix="java." />
				<propertyref prefix="sun." />
				<propertyref prefix="user." />
			</propertyset>
		</echoproperties>
		<echo message="${hudson.JOB_URL}ws/result/buckminster.properties" />

		<echoproperties destfile="${result}/all.properties" />
		<echo message="${hudson.JOB_URL}ws/result/all.properties" />
	</target>

	<!-- ============== -->
	<!-- Init Workspace -->
	<!-- ============== -->

	<target name="-init.workspace" depends="-init.clean">
		<echo message="Initializing workspace" />

		<if>
			<equals arg1="${hudson.CLEAN_TP}" arg2="true" />
			<then>
				<delete dir="${tp}" includeemptydirs="true" failonerror="true" quiet="true" />
			</then>
		</if>

		<delete dir="${ws}" includeemptydirs="true" failonerror="true" quiet="true" />
		<unzip dest="${ws}" src="${releng}/hudson/workspace.zip" />
		<copy file="${releng}/hudson/test-report-empty.xml" tofile="${test.report}" />

		<if>
			<available file="${checkout}" type="dir" />
			<then>
				<copy todir="${ws}" includeemptydirs="true" overwrite="true" preservelastmodified="true">
					<fileset dir="${checkout}">
						<include name="features/**" />
						<include name="plugins/**" />
						<include name="releng/**" />
					</fileset>
				</copy>
				<move todir="${ws}/features" failonerror="false">
					<fileset dir="${ws}/releng">
						<include name="org.eclipse.emf.cdo.releng*-feature" />
					</fileset>
				</move>
				<move todir="${ws}/plugins" failonerror="false">
					<fileset dir="${ws}/releng">
						<include name="org.eclipse.emf.cdo.releng*" />
					</fileset>
				</move>
				<delete dir="${ws}/releng" includeemptydirs="true" failonerror="false" quiet="true" />
			</then>
		</if>
	</target>

	<!-- ========= -->
	<!-- Provision -->
	<!-- ========= -->

	<target name="provision"
	        depends="-init.tools,-init.buildinfos,-init.workspace"
	        description="Imports projects and binaries">
		<echo message="Importing projects into ${ws}" />
		<echo message="Importing binaries into ${tp}" />

		<mkdir dir="${tp}" />
		<buckminster command="import">
			<cmdargs>
				<arg value="-B" />
				<arg value="${hudson.WORKSPACE}/bom.xml" />

				<arg value="-P" />
				<arg value="${basedir}/build.properties" />

				<!-- Last argument: -->
				<arg value="${basedir}/build.mspec" />
			</cmdargs>
		</buckminster>
	</target>

	<!-- ===== -->
	<!-- Build -->
	<!-- ===== -->

	<target name="build" depends="provision" description="Builds all projects and generates build-infos.xml">
		<echo message="Building all projects in workspace ${ws}" />
		<buckminster command="build">
			<cmdargs>
				<arg value="--thorough" />
			</cmdargs>
		</buckminster>
	</target>

	<!-- ======= -->
	<!-- Site.p2 -->
	<!-- ======= -->

	<target name="site.p2" depends="build" description="Generates the site and depending artifacts">
		<echo message="Performing org.eclipse.emf.cdo.site#site.p2" />
		<buckminster command="perform">
			<cmdargs>
				<arg value="org.eclipse.emf.cdo.site#site.p2" />
			</cmdargs>
		</buckminster>

		<pathconvert property="site.p2.dir">
			<dirset dir="${buckminster.output.root}">
				<filename name="org.eclipse.emf.cdo.site_${stream}.*-eclipse.feature/site.p2" />
			</dirset>
		</pathconvert>
		<echoproperties destfile="${result}/all.properties" />

		<copy todir="${hudson.WORKSPACE}"
		      overwrite="true"
		      includeemptydirs="true"
		      preservelastmodified="true"
		      failonerror="true">
			<fileset dir="${site.p2.dir}">
				<include name="**" />
			</fileset>
		</copy>

		<if>
			<equals arg1="${hudson.GENERATE_PRODUCTS}" arg2="true" />
			<then>
				<antcall target="-generate.all" />
			</then>
		</if>
	</target>

	<!-- ==== -->
	<!-- Test -->
	<!-- ==== -->

	<target name="test" depends="site.p2" description="Runs the tests">
		<echo message="Running JUnit tests" />
		<buckminster command="junit">
			<cmdargs>
				<arg value="-l" />
				<arg value="org.eclipse.emf.cdo.tests/CDO AllTests.launch" />
				<arg value="-o" />
				<arg value="${test.report}" />
				<arg value="--terseXML" />
				<arg value="--flatXML" />
			</cmdargs>
		</buckminster>
	</target>

	<!-- ============= -->
	<!-- Generate Only -->
	<!-- ============= -->

	<target name="generate.only" depends="-init.properties" description="Runs the post-site.p2 generators">
		<echo message="Loading build-info.xml" />
		<xmlproperty file="${hudson.WORKSPACE}/build-info.xml" collapseAttributes="true" />
		<antcall target="-generate.all" />
	</target>

	<!-- ============ -->
	<!-- Generate All -->
	<!-- ============ -->

	<target name="-generate.all">
		<property name="zips" location="${hudson.WORKSPACE}/zips" />
		<mkdir dir="${zips}" />

		<antcall target="-generate.index" />
		<antcall target="-generate.bookmarks" />
		<antcall target="-generate.dropins" />
		<antcall target="-generate.products" />
	</target>

	<!-- ============== -->
	<!-- Generate Index -->
	<!-- ============== -->

	<target name="-generate.index">
		<unzip src="${hudson.WORKSPACE}/content.jar" dest="${hudson.WORKSPACE}" />
		<property name="content.xml" location="${hudson.WORKSPACE}/content.xml" />
		<xslt style="xsl/content2html.xsl" in="${content.xml}" out="${hudson.WORKSPACE}/index.html" />
		<xslt style="xsl/content2xml.xsl" in="${content.xml}" out="${hudson.WORKSPACE}/index.xml" />
		<delete file="${content.xml}" />
	</target>

	<!-- =================== -->
	<!-- Generate Booksmarks -->
	<!-- =================== -->

	<target name="-generate.bookmarks">
		<property name="bookmarks.tmp" location="${hudson.WORKSPACE}/bookmarks.tmp" />
		<xslt style="xsl/bom2bookmarks.xsl" in="${hudson.WORKSPACE}/bom.xml" out="${bookmarks.tmp}" />
		<replace file="${bookmarks.tmp}" token="http://dev.eclipse.org" value="file://to-be-removed" />
		<replace file="${bookmarks.tmp}" token="file:/home/data/httpd/" value="http://" />
		<property name="bookmarks.xml" location="${hudson.WORKSPACE}/bookmarks.xml" />
		<concat destfile="${bookmarks.xml}">
			<header filtering="false">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;bookmarks&gt;
</header>
			<union>
				<sort>
					<tokens>
						<file file="${bookmarks.tmp}" />
						<linetokenizer includedelims="true" />
					</tokens>
				</sort>
			</union>
			<filterchain>
				<linecontains>
					<contains value="http://" />
				</linecontains>
			</filterchain>
			<footer filtering="false">&lt;/bookmarks&gt;
			</footer>
		</concat>
		<delete file="${bookmarks.tmp}" />
	</target>

	<!-- ================ -->
	<!-- Generate Dropins -->
	<!-- ================ -->

	<target name="-generate.dropins">
		<property name="temp.dropins" location="${buckminster.temp.root}/_dropins" />
		<delete failonerror="false" includeemptydirs="true" quiet="true">
			<fileset dir="${temp.dropins}" defaultexcludes="false">
				<include name="**/*" />
			</fileset>
		</delete>
		<mkdir dir="${temp.dropins}" />

		<copy todir="${temp.dropins}" failonerror="true">
			<fileset dir="${ws}/features/org.eclipse.emf.cdo.license-feature/rootfiles">
				<include name="epl-v10.html" />
				<include name="notice.html" />
			</fileset>
		</copy>

		<copy todir="${temp.dropins}/features" flatten="true">
			<fileset dir="${buckminster.output.root}">
				<include name="*-eclipse.feature/jar/*" />
				<include name="*-eclipse.feature/source.jar/*" />
				<exclude name="org.eclipse.emf.cdo.site*/**/*" />
				<exclude name="org.eclipse.emf.cdo.epp*/**/*" />
				<exclude name="org.eclipse.emf.cdo.license*/**/*" />
			</fileset>
		</copy>

		<copy todir="${temp.dropins}/plugins" flatten="true">
			<fileset dir="${buckminster.output.root}">
				<include name="*-osgi.bundle/jar/*" />
				<include name="*-osgi.bundle/source.jar/*" />
			</fileset>
		</copy>

		<zip destfile="${zips}/emf-cdo-${build.qualifier}-Dropins.zip">
			<fileset dir="${temp.dropins}">
				<include name="**/*" />
			</fileset>
		</zip>
		<echo message=" for use with a &lt;a href=&quot;http://help.eclipse.org/indigo/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/misc/p2_dropins_format.html&quot;&gt;dropins&lt;/a&gt; folder."
		      file="${zips}/emf-cdo-${build.qualifier}-Dropins.properties" />
	</target>

	<!-- ================= -->
	<!-- Generate Products -->
	<!-- ================= -->

	<target name="-generate.products">
		<property name="temp.products" location="${buckminster.temp.root}/_products" />
		<delete includeemptydirs="true" failonerror="true" quiet="true">
			<fileset dir="${temp.products}">
				<include name="**" />
			</fileset>
		</delete>
		<mkdir dir="${temp.products}" />

		<generate.product id="org.eclipse.emf.cdo.server.product.tcp_h2"
		                  profile="CDOServer"
		                  platform="Windows"
		                  os="win32"
		                  ws="win32"
		                  arch="x86"
		                  priority="450" />

		<generate.product id="org.eclipse.emf.cdo.explorer.product"
		                  profile="CDOExplorer"
		                  platform="Windows"
		                  os="win32"
		                  ws="win32"
		                  arch="x86"
		                  priority="350" />

		<generate.product id="org.eclipse.emf.cdo.server.product.tcp_h2"
		                  profile="CDOServer"
		                  platform="Linux"
		                  os="linux"
		                  ws="gtk"
		                  arch="x86"
		                  priority="440" />

		<generate.product id="org.eclipse.emf.cdo.explorer.product"
		                  profile="CDOExplorer"
		                  platform="Linux"
		                  os="linux"
		                  ws="gtk"
		                  arch="x86"
		                  priority="340" />

		<generate.product id="org.eclipse.emf.cdo.server.product.tcp_h2"
		                  profile="CDOServer"
		                  platform="Mac"
		                  os="macosx"
		                  ws="carbon"
		                  arch="x86"
		                  priority="430" />

		<generate.product id="org.eclipse.emf.cdo.explorer.product"
		                  profile="CDOExplorer"
		                  platform="Mac"
		                  os="macosx"
		                  ws="carbon"
		                  arch="x86"
		                  priority="330" />
	</target>

</project>

Back to the top