blob: 55cd6445add077244bb62605606ad64746932941 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?> <!--
Copyright (c) 2005, 2009 IBM Corporation and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
IBM Corporation - initial API and implementation
-->
<project name="Build AntUI Ant support JAR" default="build" basedir="..">
<target name="build" description="Cleans, builds and refreshes" depends="clean, lib/antrunnerlib.jar"/>
<target name="init" depends="properties">
<property name="version.suffix" value="_3.1.0"/>
<property name="new.version.suffix" value="_3.2.0"/>
<property name="temp.folder" value="${basedir}/temp.folder"/>
<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/antrunnerlib.jar" description= "Creates the antrunner.jar" depends="init">
<property name="destdir" value="${temp.folder}/lib/antrunner.jar.bin"/>
<delete dir="${destdir}"/>
<mkdir dir="${destdir}"/>
<!-- compile the source code -->
<javac target="1.3" source="1.3" destdir="${destdir}" failonerror="true" verbose="false" debug="on" includeJavaRuntime= "yes">
<classpath>
<dirset dir="${basedir}/..">
<include name="org.eclipse.core.runtime/bin"/>
<include name="org.eclipse.core.jobs/bin"/>
<include name="org.eclipse.equinox.common/bin"/>
<include name="org.eclipse.core.resources/bin"/>
<include name="org.eclipse.ant.ui/bin"/>
<include name="org.eclipse.swt*/bin"/>
<include name="org.eclipse.text/bin"/>
<include name="org.eclipse.ant.core/bin"/>
<include name="org.eclipse.debug.core/bin"/>
<include name="org.eclipse.debug.ui/bin"/>
<include name="org.eclipse.ui.console/bin"/>
<include name="org.eclipse.jface/bin"/>
<include name="org.eclipse.osgi/bin"/>
</dirset>
<fileset dir="${eclipse.home}">
<include name="plugins/org.eclipse.core.runtime*.jar"/>
<include name="plugins/org.eclipse.core.jobs*.jar"/>
<include name="plugins/org.eclipse.equinox.common*.jar"/>
<include name="plugins/org.eclipse.core.resources*.jar"/>
<include name="plugins/org.eclipse.swt*.jar"/>
<include name="plugins/org.eclipse.text*.jar"/>
<include name="plugins/org.eclipse.ant.core*.jar"/>
<include name="plugins/org.eclipse.debug.core*.jar"/>
<include name="plugins/org.eclipse.debug.ui*.jar"/>
<include name="plugins/org.eclipse.ui.console*.jar"/>
<include name="plugins/org.eclipse.jface*.jar"/>
<include name="plugins/org.eclipse.osgi*.jar"/>
</fileset>
</classpath>
<src path="Ant Runner Support/"/>
</javac>
<!-- copy necessary resources -->
<copy todir="${destdir}">
<fileset dir="Ant Runner Support/" excludes="**/*.java"/>
</copy>
<mkdir dir="${build.result.folder}/lib"/>
<jar destfile="${build.result.folder}/lib/antrunner.jar" basedir="${destdir}"/>
<delete dir="${temp.folder}"/>
</target>
<target name="clean" description="Deletes previous build remnants" depends="init">
<delete file="${build.result.folder}/lib/antrunner.jar"/>
<delete dir="${temp.folder}"/>
</target>
</project>