blob: f0df5c37d57c878a562d09f97e002ef7b27bb0a3 [file] [log] [blame]
<!-- Export a jar of .class files for the org.eclipse.ant.core Eclipse plug-in
along with other important plugin files to the "plugin-export" subdirectory
of the target Eclipse installation -->
<project name="Export ant.core" default="export" basedir="..">
<!-- Set the timestamp and important properties -->
<target name="init">
<property name="destdir" value="../../plugin-export" />
<property name="dest" value="${destdir}/org.eclipse.ant.core_3.0.0" />
<!-- Create the jar of .class files, and copy other important files to export dir -->
<target name="export" depends="init">
<mkdir dir="${destdir}" />
<delete dir="${dest}" />
<mkdir dir="${dest}" />
<delete dir="${dest}/lib"/>
<mkdir dir="${dest}/lib"/>
<jar destfile="${dest}/antsupport.jar">
<fileset dir="bin">
<exclude name="org/eclipse/ant/internal/core/ant/*"/>
<!-- Create the source zip -->
<zip destfile="${dest}/">
<fileset dir="src"/>
<copy file="plugin.xml" todir="${dest}"/>
<copy file="" todir="${dest}"/>
<copy file=".classpath" todir="${dest}"/>
<copy file=".options" todir="${dest}"/>
<ant antfile="buildfiles/buildExtraJAR.xml" target="build"/>
<copy file="lib/antsupportlib.jar" todir="${dest}/lib"/>