Skip to main content
summaryrefslogtreecommitdiffstats
blob: f4df9eae2e1597c64c071b0e67f24c18765888a9 (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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Osee Common Build Tasks" default="PdeBuild" basedir=".">
	<!-- this ant file is assumed to be located at <workspace>\org.eclipse.osee.support.build\support, basedir will be the same -->

	<target name="PdeBuild">
		<tstamp />
		<!-- if behind a firewall then uncomment the following properties:
			<property name="proxy_host" value="www-my-proxy.domain.com" />
			<property name="proxy_port" value="12345" />
		-->
		<property name="topLevelElementType" value="feature" />
		<property name="builder" value="${basedir}" />
		<dirname property="baseLocation" file="${eclipse.launcher}" />
		<dirname property="workspaceLocationSub" file="${basedir}" />
		<dirname property="workspaceLocation" file="${workspaceLocationSub}" />
		<property name="buildDirectory" value="${workspaceLocation}/sandbox" />
		<property name="pdeTarget" value="main" />

		<antcall target="set-proxy" />

		<delete verbose="true" quiet="true" includeEmptyDirs="true">
			<fileset dir="${buildDirectory}" excludes="plugins/**/*" />
		</delete>

		<copy todir="${buildDirectory}/maps">
			<fileset file="${basedir}/osee.map" />
		</copy>
				
		<antcall target="copyOrbitMapFile" />
		<antcall target="copySupplementalMapFile" />

		<ant antfile="${eclipse.pdebuild.scripts}/build.xml" target="${pdeTarget}" />
		
		<antcall target="internalPostBuild" />

		<antcall target="copyToUpdatesite" />
	</target>

	<target name="set-proxy" if="proxy_host">
		<echo message="Setting proxy to ${proxy_host}:${proxy_port}" />
		<setproxy proxyhost="${proxy_host}" proxyport="${proxy_port}" />
	</target>

	<target name="internalPostBuild" if="postBuildFile">
		<ant antfile="${postBuildFile}" target="${postBuildTarget}" />
	</target>

	<target name="copyToUpdatesite" if="update.site">
		<delete failonerror="false">
			<fileset dir="${update.site}" includes="**/*" defaultexcludes="false" />
		</delete>

		<copy todir="${update.site}">
			<fileset dir="${buildDirectory}/repository" />
		</copy>
	</target>

	<target name="copySupplementalMapFile" if="mapFile">
		<copy todir="${buildDirectory}/maps">
			<fileset file="${mapFile}" />
		</copy>
	</target>
	
	<target name="copyOrbitMapFile" if="downloadOrbitPlugins">
		<copy todir="${buildDirectory}/maps">
			<fileset file="${basedir}/orbit.map" />
		</copy>
	</target>
</project>

Back to the top