blob: aadb0db8887cf9d9cbb5455cdeac381e3ebb985e [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<project name="Build Ant support JAR" default="build" basedir="..">
<property name="bootclasspath" value=""/>
<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">
<bootclasspath path="${bootclasspath}"/>
<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>