blob: 1f0c98df13dffaba5ae3ea02262e49226754e03b [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<project name="org.eclipse.ant.ui" 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}_${version}"/>
<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}_${version}"/>
<property name="excludes" value="${bin.excludes}"/>
<property name="includes" value="${bin.includes}"/>
</ant>
</target>
<target name="lib/antuilib.jar" depends="init">
<ant antfile="${template}" target="jar">
<property name="dest" value="${basedir}/lib/antuilib.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.ui}/bin;${location.org.eclipse.ant.ui}/antui.jar;${location.org.apache.ant}/bin;${location.org.apache.ant}/ant.jar;${location.org.apache.ant}/jakarta-ant-1.4.1-optional.jar;${location.org.apache.xerces}/bin;${location.org.apache.xerces}/xerces.jar;${location.org.eclipse.ant.core}/bin;${location.org.eclipse.ant.core}/antsupport.jar;${location.org.eclipse.core.resources}/bin;${location.org.eclipse.core.resources}/resources.jar;${location.org.eclipse.ui}/bin;${location.org.eclipse.ui}/workbench.jar;${location.org.eclipse.help}/bin;${location.org.eclipse.help}/help.jar;${location.org.apache.lucene}/bin;${location.org.apache.lucene}/lucene-1.2-rc2.jar;${location.org.apache.lucene}/lucenedemo.zip;${location.org.eclipse.swt}/bin;${location.org.eclipse.swt}/ws/${ws}/swt-pi.jar;${location.org.eclipse.swt}/ws/${ws}/swt.jar"/>
</ant>
</target>
<target name="antui.jar" depends="init">
<ant antfile="${template}" target="jar">
<property name="dest" value="${basedir}/antui.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.ui}/bin;${location.org.eclipse.ant.ui}/antui.jar;${location.org.apache.ant}/bin;${location.org.apache.ant}/ant.jar;${location.org.apache.ant}/jakarta-ant-1.4.1-optional.jar;${location.org.apache.xerces}/bin;${location.org.apache.xerces}/xerces.jar;${location.org.eclipse.ant.core}/bin;${location.org.eclipse.ant.core}/antsupport.jar;${location.org.eclipse.core.resources}/bin;${location.org.eclipse.core.resources}/resources.jar;${location.org.eclipse.ui}/bin;${location.org.eclipse.ui}/workbench.jar;${location.org.eclipse.help}/bin;${location.org.eclipse.help}/help.jar;${location.org.apache.lucene}/bin;${location.org.apache.lucene}/lucene-1.2-rc2.jar;${location.org.apache.lucene}/lucenedemo.zip;${location.org.eclipse.swt}/bin;${location.org.eclipse.swt}/ws/${ws}/swt-pi.jar;${location.org.eclipse.swt}/ws/${ws}/swt.jar"/>
</ant>
</target>
<target name="build.jars" depends="init,antui.jar,lib/antuilib.jar">
</target>
<target name="build.zips" depends="init">
</target>
<target name="gather.sources" depends="init" if="destination">
<mkdir dir="${destination}/plugins/${plugin}_${version}/lib"/>
<copy file="${basedir}/lib/antuilibsrc.zip" todir="${destination}/plugins/${plugin}_${version}/lib"/>
<mkdir dir="${destination}/plugins/${plugin}_${version}"/>
<copy file="${basedir}/antuisrc.zip" todir="${destination}/plugins/${plugin}_${version}"/>
</target>
<target name="lib/antuilibsrc.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/antuilibsrc.zip"/>
<property name="excludes" value=""/>
<property name="includes" value="src_ant/**/*.java"/>
</ant>
</target>
<target name="antuisrc.zip" depends="init">
<ant antfile="${template}" target="src">
<property name="srcdir" value="${basedir}"/>
<property name="mapping" value="src/"/>
<property name="dest" value="${basedir}/antuisrc.zip"/>
<property name="excludes" value=""/>
<property name="includes" value="src/**/*.java"/>
</ant>
</target>
<target name="build.sources" depends="init,lib/antuilibsrc.zip,antuisrc.zip">
</target>
<target name="gather.logs" depends="init">
<mkdir dir="${destination}/plugins/${plugin}_${version}/lib"/>
<copy file="${basedir}/lib/antuilib.jar.bin.log" todir="${destination}/plugins/${plugin}_${version}/lib"/>
<mkdir dir="${destination}/plugins/${plugin}_${version}"/>
<copy file="${basedir}/antui.jar.bin.log" todir="${destination}/plugins/${plugin}_${version}"/>
</target>
<target name="clean" depends="init">
<delete>
<fileset dir="${basedir}" includes="*.bin"/>
<fileset dir="${basedir}" includes="**/*.log"/>
<fileset dir="${basedir}" includes="lib/antuilib.jar,antui.jar"/>
<fileset dir="${basedir}" includes="lib/antuilibsrc.zip,antuisrc.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.ui"/>
<property name="version" value="1.9.0"/>
<pluginLocation plugin="org.eclipse.swt" property="location.org.eclipse.swt"/>
<pluginLocation plugin="org.apache.ant" property="location.org.apache.ant"/>
<pluginLocation plugin="org.eclipse.ant.core" property="location.org.eclipse.ant.core"/>
<pluginLocation plugin="org.eclipse.ant.ui" property="location.org.eclipse.ant.ui"/>
<pluginLocation plugin="org.eclipse.ui" property="location.org.eclipse.ui"/>
<pluginLocation plugin="org.eclipse.help" property="location.org.eclipse.help"/>
<pluginLocation plugin="org.eclipse.core.boot" property="location.org.eclipse.core.boot"/>
<pluginLocation plugin="org.apache.lucene" property="location.org.apache.lucene"/>
<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.eclipse.core.resources" property="location.org.eclipse.core.resources"/>
<property name="bin.includes" value="icons/,plugin.xml,*.jar,plugin.properties,about.html,lib/"/>
<property name="bin.excludes" value="src/,src_ant/"/>
</target>
</project>