blob: ea71eaa6ccf0707ed2030d4fc9e61bd8941184df [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2005, 2016 IBM Corporation and others.
This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
which accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
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" 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/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}"/>
<javac target="1.6" source="1.6" destdir="${destdir}" failonerror="true" verbose="false" debug="on" includeAntRuntime="yes"
classpath="${basedir}/bin">
<src path="${basedir}/common"/>
<compilerarg value="-Xlint"/>
</javac>
<copy file="${basedir}/common_bin/META-INF/eclipse.inf" tofile="${destdir}/META-INF/eclipse.inf"/>
<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>
<!-- Empty target for "After a Clean" task (we don't want to rebuild the Jar here, e.g. on checkout). -->
<target name="after_clean"/>
</project>