Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: eddf1d9d2aeded7d1584ae0fa950dbf068629127 (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
<?xml version="1.0" encoding="UTF-8"?>
<project name="org.eclipse.core.resources" default="main" basedir="..">

	<target name="main" depends="clean, ant_tasks/director-ant.jar">
	</target>

	<target name="init" depends="properties">
		<property name="plugin" value="org.eclipse.equinox.p2.director.app"/>
		<property name="temp.folder" value="${basedir}/temp.folder"/>
		<property name="plugin.destination" value="${basedir}"/>
		<property name="build.result.folder" value="${basedir}/ant_tasks"/>
		<property name="version.suffix" value="_3.1.0"/>
	</target>

	<target name="properties" if="eclipse.running">
		<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
	</target>

	<target name="ant_tasks/director-ant.jar" depends="init" unless="ant_tasks/director-ant.jar">
		<property name="destdir" value="${temp.folder}/ant_tasks/director-ant.jar.bin"/>
		<delete dir="${temp.folder}/ant_tasks/director-ant.jar.bin"/>
		<mkdir dir="${temp.folder}/ant_tasks/director-ant.jar.bin"/>
		<!-- compile the source code -->
		<javac destdir="${temp.folder}/ant_tasks/director-ant.jar.bin" failonerror="true" verbose="true" debug="on">
			<classpath>
				<dirset dir="${basedir}/..">
					<include name="org.eclipse.equinox.p2.director.app/bin"/>
					<include name="org.eclipse.osgi/bin"/>
				</dirset>
				<fileset dir="${eclipse.home}">
					<include name="plugins/org.eclipse.equinox.p2.director.app*.jar"/>
					<include name="plugins/org.eclipse.osgi*.jar"/>
				</fileset>
			</classpath>
			<src path="src_ant/"/>
		</javac>
		<!-- copy necessary resources -->
		<copy todir="${temp.folder}/ant_tasks/director-ant.jar.bin">
			<fileset dir="src_ant/" excludes="**/*.java"/>
		</copy>
		<mkdir dir="${build.result.folder}"/>
		<jar jarfile="${build.result.folder}/director-ant.jar" basedir="${temp.folder}/ant_tasks/director-ant.jar.bin"/>
		<delete dir="${temp.folder}/ant_tasks/director-ant.jar.bin"/>
		<delete dir="${temp.folder}"/>
	</target>

	<target name="clean" depends="init">
		<delete file="${build.result.folder}/director-ant.jar"/>
		<delete dir="${temp.folder}"/>
	</target>
</project>

Back to the top