blob: 4b7c46f890af4a2f01c8fd3508ea809aa5a53cff [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?> <!--
Copyright (c) 2005, 2006 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 support JAR" default="build" basedir="..">
<target name="build" description="Cleans, builds and refreshes the impacted resources" depends="clean, lib/antsupportlib.jar"/>
<target name="init" depends="properties">
<property name="temp.folder" value="${basedir}/temp.folder"/>
<property name="build.result.folder" value="${basedir}"/>
<property name="version.suffix" value="_3.1.0"/>
<property name="new.version.suffix" value="_3.2.0"/>
</target>
<target name="properties" if="eclipse.running">
<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
</target>
<target name="lib/antsupportlib.jar" depends="init" description="Creates the lib/antsupportlib.jar">
<property name="destdir" value="${temp.folder}/lib/antsupportlib.jar.bin"/>
<delete dir="${destdir}"/>
<mkdir dir="${destdir}"/>
<!-- compile the source code -->
<javac target="1.4" source="1.4" destdir="${destdir}" failonerror="true" verbose="false" debug="on">
<classpath>
<dirset dir="${basedir}/..">
<include name="org.eclipse.core.runtime/bin"/>
<include name="org.eclipse.equinox.common/bin"/>
<include name="org.eclipse.core.variables/bin"/>
<include name="org.eclipse.osgi/bin"/>
<include name="org.eclipse.ant.core/bin"/>
</dirset>
<fileset dir="${eclipse.home}">
<include name="plugins/org.eclipse.core.runtime*.jar"/>
<include name="plugins/org.eclipse.equinox.common*.jar"/>
<include name="plugins/org.eclipse.core.variables*.jar"/>
<include name="plugins/org.eclipse.osgi*.jar"/>
</fileset>
</classpath>
<src path="src_ant/"/>
</javac>
<!-- copy necessary resources -->
<copy todir="${destdir}">
<fileset dir="src_ant/" excludes="**/*.java"/>
</copy>
<mkdir dir="${build.result.folder}/lib"/>
<jar destfile="${build.result.folder}/lib/antsupportlib.jar" basedir="${destdir}"/>
<delete dir="${temp.folder}"/>
</target>
<target name="clean" depends="init">
<delete file="${build.result.folder}/lib/antsupportlib.jar"/>
<delete dir="${temp.folder}"/>
</target>
</project>