File: buildConfiguration.xml

package info (click to toggle)
eclipse 3.8.1-10
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 338,840 kB
  • ctags: 472,808
  • sloc: java: 2,762,042; ansic: 136,783; xml: 105,676; cpp: 35,759; jsp: 4,420; sh: 3,288; perl: 1,687; makefile: 232; python: 67; php: 24
file content (54 lines) | stat: -rw-r--r-- 2,518 bytes parent folder | download | duplicates (3)
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
<project name="org.eclipse.rcp.configuration" default="main">

	<target name="main" >
        <property name="product" value="${basedir}/config.product" />
        <property name="id" value="org.eclipse.pde.build.container.feature" />
        <property name="type" value="feature" />
		<property name="verify" value="false" />
		
		<!--
		<echo message="In buildConfiguration.xml"/>
		<echo message="basedir=${basedir}"/>
		<echo message="buildDirectory=${buildDirectory}"/>
		<echo message="buildConfig=${buildConfig}"/>
		<echo message="buildId=${buildId}"/>
		<echo message="product=${product}"/>
		<echo message="eclipse.pdebuild.scripts=${eclipse.pdebuild.scripts}"/>
		-->

		<path id="launcher.paths">
			<fileset dir="${reposource}" includes="plugins/org.eclipse.equinox.launcher*" />
			<!-- the built version of the org.eclipse.equinox.executable feature -->
			<dirset dir="${baseBuildPath}" includes="features/org.eclipse.equinox.executable*" />  
		</path>

		<!-- generate a feature based on our .product file -->
		<ant antfile="${eclipse.pdebuild.scripts}/productBuild/productBuild.xml" target="generateFeature" >
			<property name="nestedInclusions" value="false" />
			<property name="buildDirectory" value="${basedir}/temp"/>
		</ant>
		<!-- generate product build scripts for the generated feature -->
		<echo message="About to call generateScript with buildDirectory = ${basedir}/temp"/>
		<ant antfile="${eclipse.pdebuild.scripts}/genericTargets.xml" target="generateScript">
            <property name="buildDirectory" value="${basedir}/temp"/>
			<property name="baseLocation" value="" />
			<property name="transformedRepoLocation" value="" />
			<property name="pluginPath" refid="launcher.paths" />
			<property name="forceContextQualifier" value="${buildId}" />
        </ant>

		<!-- get the generate p2.inf that got generated with the above scripts --> 
		<move file="${basedir}/temp/features/org.eclipse.pde.build.container.feature/product/p2.inf" tofile="${basedir}/p2.inf" overwrite="true" />
		<replace file="${basedir}/p2.inf" token="@FLAVOR@" value="tooling" />
		
		<!-- publish the configuration feature with the generated p2.inf -->
		<replace file="${basedir}/feature.xml" token="@qualifier@" value="${buildId}" />
		<property name="buildDirectory" value="${baseBuildPath}"/>
		<eclipse.gatherFeature
			metadataRepository="file:${reposource}"
			artifactRepository="file:${reposource}"
			buildResultFolder="${basedir}"
			baseDirectory="${basedir}"
		/>
	</target>
</project>