Skip to main content
summaryrefslogtreecommitdiffstats
blob: 88b99eb55d5b3810bdfdad5b3d211ec49f6ebf2b (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
<?xml version="1.0" encoding="UTF-8"?>
<!--
     Copyright (c) 2005, 2009 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 Ant common debug support JAR" default="build" basedir="..">
	
	<target name="build" description="Cleans, builds and refreshes" depends="clean, lib/antdebuglib.jar"/>

	<target name="init">
		<property name="temp.folder" value="${basedir}/temp.folder"/>
		<property name="build.result.folder" value="${basedir}"/>
	</target>
	
	<target name="lib/antdebuglib.jar" description= "Creates the antdebug.jar" depends="init">
		<property name="destdir" value="${temp.folder}/lib/antdebug.jar.bin"/>
		<delete dir="${destdir}"/>
		<mkdir dir="${destdir}"/>
		<!-- copy necessary class files resources -->
		<copy todir="${destdir}">
			<fileset dir="${basedir}/common_bin"/>
		</copy>
		<mkdir dir="${build.result.folder}/lib"/>
		<jar destfile="${build.result.folder}/lib/antdebug.jar" basedir="${destdir}"/>
		<delete dir="${temp.folder}"/>
	</target>

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

Back to the top