Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
blob: 5e1ed8850a8a9da1ab9948870985f8deca3d364b (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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Build Ant Environment support JAR" default="build" basedir=".">

	<target name="build" description="Cleans, builds and refreshes" depends="clean, ant-lib/anttasks.jar"/>

	<target name="init" depends="properties">
		<property name="version.suffix" value="_3.1.0"/>
		<property name="new.version.suffix" value="_3.2.0"/>
		<property name="bootclasspath" value=""/>
		<property name="temp.folder" value="${basedir}/temp.folder"/>
		<property name="build.result.folder" value="${basedir}"/>
		<property name="win32.jar" value="${eclipse.home}/plugins/org.eclipse.swt.win32.win32.x86${version.suffix}.jar"/>
		<property name="gtk.jar" value="${eclipse.home}/plugins/org.eclipse.swt.gtk.linux.x86${version.suffix}.jar"/>
		<property name="motif.jar" value="${eclipse.home}/plugins/org.eclipse.swt.motif${version.suffix}.jar"/>
		<property name="osx.jar" value="${eclipse.home}/plugins/org.eclipse.swt.carbon.macosx.ppc${version.suffix}.jar"/>
		<available file="${win32.jar}" property="swt.jar" value="${win32.jar}"/>
		<available file="${gtk.jar}" property="swt.jar" value="${gtk.jar}"/>
		<available file="${motif.jar}" property="swt.jar" value="${motif.jar}"/>
		<available file="${osx.jar}" property="swt.jar" value="${osx.jar}"/>
	</target>
	
	<target name="properties" if="eclipse.running">
		<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
	</target>
		
		<target name="ant-lib/anttasks.jar" description= "Creates the antrunner.jar" depends="init">
			<property name="destdir" value="${temp.folder}/ant-lib/anttasks.jar"/>
			<delete dir="${destdir}"/>
			<mkdir dir="${destdir}"/>
			<javac destdir="${destdir}" failonerror="true" verbose="false" debug="on" includeJavaRuntime= "yes"
			 	bootclasspath="${bootclasspath}"
			 	classpath="${basedir}/bin">
				<src path="ant-src/"/>
			</javac>
			<copy todir="${destdir}">
				<fileset dir="ant-src/" excludes="**/*.java"/>
			</copy>
			<mkdir dir="${build.result.folder}/ant-lib"/>
			<jar destfile="${build.result.folder}/ant-lib/anttasks.jar" basedir="${destdir}"/>
			<delete dir="${temp.folder}"/>
		</target>

		<target name="clean" description="Deletes previous build remnants" depends="init">
			<delete file="${build.result.folder}/ant-lib/anttasks.jar"/>
			<delete dir="${temp.folder}"/>
		</target>
	
	<target name="refresh">
	<eclipse.LocalRefresh resource="org.eclipse.wst.command.env" depth="infinite"/>
	</target>
	
	</project>

Back to the top