aboutsummaryrefslogtreecommitdiffstats
blob: 1c7c8de11cdf1a05ca0e52312269b93dfaeef84b (plain)
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
<?xml version="1.0" encoding="UTF-8"?>
<!--
     Copyright (c) 2005, 2012 IBM Corporation 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:
         IBM Corporation - initial API and implementation
 -->

<project name="Build Launching Support JAR" default="build" basedir="..">

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

	<target name="init" depends="properties">
		<property name="temp.folder" value="${basedir}/temp.folder"/>
		<property name="build.result.folder" value="${basedir}"/>
	</target>

	<target name="properties" if="eclipse.running">
		<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
	</target>
	
	<target name="lib/launchingsupport.jar" description= "Creates the launchingsupport.jar" depends="init">
		<property name="destdir" value="${temp.folder}/lib/launchingsupport.jar.bin"/>
		<delete dir="${destdir}"/>
		<mkdir dir="${destdir}"/>
		<!-- compile the source code -->
		<javac target="1.1" source="1.3" destdir="${destdir}" failonerror="false" verbose="false" debug="on" includeJavaRuntime= "yes" includeAntRuntime="no"
			 classpath="">
			<src path="support/"/>
		</javac>
		<mkdir dir="${build.result.folder}/lib"/>
		<jar destfile="${build.result.folder}/lib/launchingsupport.jar" basedir="${destdir}"/>
		<delete dir="${temp.folder}"/>
	</target>
	
	<!-- Empty target for "After a Clean" task (we don't want to rebuild the Jar here, e.g. on checkout). -->
	<target name="dummy_clean"/>

	<target name="clean" description="Deletes previous build remnants" depends="init">
		<delete file="${build.result.folder}/lib/launchingsupport.jar"/>
		<delete dir="${temp.folder}"/>
	</target>
</project>