blob: 4989c687cd44b73f35bf3eb306656cec48da3f3c [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<project name="org.eclipse.ant.core" default="main" basedir="..">
<property name="bootclasspath" value=""/>
<target name="main">
<condition property="fullBuild">
<equals arg1="${buildType}" arg2="full"/>
</condition>
<antcall target="build"/>
</target>
<target name="build" if="fullBuild">
<antcall target="clean"/>
<antcall target="lib/antsupportlib.jar"/>
<antcall target="refresh"/>
</target>
<target name="init" depends="properties">
<property name="plugin" value="org.eclipse.ant.core"/>
<property name="version.suffix" value="_2.1.0"/>
<property name="full.name" value="${plugin}${version.suffix}"/>
<property name="temp.folder" value="${basedir}/temp.folder"/>
<property name="plugin.destination" value="${basedir}"/>
<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/antsupportlib.jar" depends="init">
<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="false" verbose="false" debug="on" includeAntRuntime="no" bootclasspath="${bootclasspath}" classpath="${basedir}/../org.eclipse.core.runtime/runtime.jar;${basedir}/../org.apache.ant/ant.jar;${basedir}/../org.apache.xerces/xercesImpl.jar;${basedir}/../org.apache.xerces/xmlParserAPIs.jar;${basedir}/bin;${basedir}/../org.eclipse.core.boot/boot.jar;">
<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>
<target name="refresh" depends="init" if="eclipse.running">
<eclipse.refreshLocal resource="${plugin}" depth="infinite"/>
</target>
</project>