blob: b3faa0974a566ba3f537b0797ff3028c0c8e5bd8 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<project name="org.eclipse.ant.core" default="build.jars" basedir=".">
<target name="initTemplate" unless="template">
<initTemplate/>
</target>
<target name="init" depends="initTemplate, properties">
</target>
<target name="build.update.jar" depends="init">
<property name="base" value="${basedir}/bin.zip.pdetemp"/>
<delete dir="${base}"/>
<mkdir dir="${base}"/>
<antcall target="build.jars"/>
<antcall target="gather.bin.parts">
<param name="destination" value="${base}/"/>
</antcall>
<delete>
<fileset dir="${base}" includes="**/*.bin.log"/>
</delete>
<zip zipfile="${basedir}/${plugin}_${version}.jar" basedir="${base}/plugins/${plugin}"/>
<delete dir="${base}"/>
</target>
<target name="gather.bin.parts" depends="init" if="destination">
<ant antfile="${template}" target="includesExcludesCopy">
<property name="srcdir" value="${basedir}"/>
<property name="dest" value="${destination}/plugins/${plugin}"/>
<property name="excludes" value="${bin.excludes}"/>
<property name="includes" value="${bin.includes}"/>
</ant>
</target>
<target name="antsupport.jar" depends="init">
<ant antfile="${template}" target="jar">
<property name="dest" value="${basedir}/antsupport.jar"/>
<property name="srcdir" value="${basedir}"/>
<property name="includes" value="src/"/>
<property name="excludes" value=""/>
<property name="mapping" value="src/"/>
<property name="compilePath" value="${location.org.eclipse.core.runtime}/bin;${location.org.eclipse.core.runtime}/runtime.jar;${location.org.eclipse.core.boot}/bin;${location.org.eclipse.core.boot}/boot.jar;${location.org.eclipse.ant.core}/bin;${location.org.eclipse.ant.core}/antsupport.jar;${location.org.apache.xerces}/bin;${location.org.apache.xerces}/xerces.jar"/>
</ant>
</target>
<target name="lib/antsupportlib.jar" depends="init">
<ant antfile="${template}" target="jar">
<property name="dest" value="${basedir}/lib/antsupportlib.jar"/>
<property name="srcdir" value="${basedir}"/>
<property name="includes" value="src_ant/"/>
<property name="excludes" value=""/>
<property name="mapping" value="src_ant/"/>
<property name="compilePath" value="${location.org.eclipse.core.runtime}/bin;${location.org.eclipse.core.runtime}/runtime.jar;${location.org.eclipse.core.boot}/bin;${location.org.eclipse.core.boot}/boot.jar;${location.org.eclipse.ant.core}/bin;${location.org.eclipse.ant.core}/antsupport.jar;${location.org.apache.xerces}/bin;${location.org.apache.xerces}/xerces.jar;${location.org.apache.ant}/ant.jar"/>
</ant>
</target>
<target name="build.jars" depends="init,antsupport.jar,lib/antsupportlib.jar">
</target>
<target name="build.zips" depends="init">
</target>
<target name="gather.sources" depends="init" if="destination">
<mkdir dir="${destination}/plugins/${plugin}"/>
<copy file="${basedir}/antsupportsrc.zip" todir="${destination}/plugins/${plugin}"/>
<mkdir dir="${destination}/plugins/${plugin}/lib"/>
<copy file="${basedir}/lib/antsupportlibsrc.zip" todir="${destination}/plugins/${plugin}/lib"/>
</target>
<target name="antsupportsrc.zip" depends="init">
<ant antfile="${template}" target="src">
<property name="srcdir" value="${basedir}"/>
<property name="mapping" value="src/"/>
<property name="dest" value="${basedir}/antsupportsrc.zip"/>
<property name="excludes" value=""/>
<property name="includes" value="src/**/*.java"/>
</ant>
</target>
<target name="lib/antsupportlibsrc.zip" depends="init">
<ant antfile="${template}" target="src">
<property name="srcdir" value="${basedir}"/>
<property name="mapping" value="src_ant/"/>
<property name="dest" value="${basedir}/lib/antsupportlibsrc.zip"/>
<property name="excludes" value=""/>
<property name="includes" value="src_ant/**/*.java"/>
</ant>
</target>
<target name="build.sources" depends="init,antsupportsrc.zip,lib/antsupportlibsrc.zip">
</target>
<target name="gather.logs" depends="init">
<mkdir dir="${destination}/plugins/${plugin}"/>
<copy file="${basedir}/antsupport.jar.bin.log" todir="${destination}/plugins/${plugin}"/>
<mkdir dir="${destination}/plugins/${plugin}/lib"/>
<copy file="${basedir}/lib/antsupportlib.jar.bin.log" todir="${destination}/plugins/${plugin}/lib"/>
</target>
<target name="clean" depends="init">
<delete>
<fileset dir="${basedir}" includes="*.bin"/>
<fileset dir="${basedir}" includes="**/*.log"/>
<fileset dir="${basedir}" includes="antsupport.jar,lib/antsupportlib.jar"/>
<fileset dir="${basedir}" includes="antsupportsrc.zip,lib/antsupportlibsrc.zip"/>
<fileset dir="${basedir}" includes="**/*.pdetemp"/>
</delete>
<delete file="${plugin}_${version}.jar"/>
<delete file="${plugin}_${version}.src.zip"/>
<delete file="${plugin}_${version}.log.zip"/>
</target>
<target name="properties">
<property name="plugin" value="org.eclipse.ant.core"/>
<property name="version" value="2.2.1"/>
<pluginLocation plugin="org.eclipse.core.boot" property="location.org.eclipse.core.boot"/>
<pluginLocation plugin="org.eclipse.core.runtime" property="location.org.eclipse.core.runtime"/>
<pluginLocation plugin="org.apache.xerces" property="location.org.apache.xerces"/>
<pluginLocation plugin="org.apache.ant" property="location.org.apache.ant"/>
<pluginLocation plugin="org.eclipse.ant.core" property="location.org.eclipse.ant.core"/>
<property name="bin.includes" value="plugin.xml,*.jar,plugin.properties,about.html,lib/"/>
<property name="bin.excludes" value="src/,src_ant/"/>
</target>
</project>