blob: 13858db42a2e6d57762c9b2d92419b90bec423f5 [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.0.0"/>
<property name="ant_version.suffix" value="_1.6.1"/>
</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="${temp.folder}/lib/antsupportlib.jar.bin"/>
<mkdir dir="${temp.folder}/lib/antsupportlib.jar.bin"/>
<!-- compile the source code -->
<javac target="1.3" source="1.3" destdir="${temp.folder}/lib/antsupportlib.jar.bin"
failonerror="true"
verbose="false"
debug="on"
includeAntRuntime="no"
bootclasspath="${bootclasspath}"
classpath="${basedir}/../org.eclipse.core.runtime/bin;
${eclipse.home}/plugins/org.eclipse.core.runtime${version.suffix}/runtime.jar;
${basedir}/../org.eclipse.osgi/bin;
${eclipse.home}/plugins/org.eclipse.osgi${version.suffix}/osgi.jar;
${basedir}/../org.apache.ant/lib/ant.jar;
${eclipse.home}/plugins/org.apache.ant${ant_version.suffix}/lib/ant.jar;
${basedir}/bin">
<src path="src_ant/"/>
</javac>
<!-- copy necessary resources -->
<copy todir="${temp.folder}/lib/antsupportlib.jar.bin">
<fileset dir="src_ant/" excludes="**/*.java"/>
</copy>
<mkdir dir="${build.result.folder}/lib"/>
<jar jarfile="${build.result.folder}/lib/antsupportlib.jar" basedir="${temp.folder}/lib/antsupportlib.jar.bin"/>
<delete dir="${temp.folder}"/>
</target>
<target name="clean" depends="init">
<delete file="${build.result.folder}/lib/antsupportlib.jar"/>
<delete dir="${temp.folder}"/>
</target>
</project>