blob: ede6807350ac68c68a0cf0c954150c634a13863b [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2005, 2016 IBM Corporation and others.
This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
which accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
IBM Corporation - initial API and implementation
-->
<project name="Build AntUI Remote Ant support JAR" default="build" basedir="..">
<target name="build" description="Cleans, builds and refreshes" depends="clean, lib/remoteAntLib.jar"/>
<target name="init" depends="properties">
<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/remoteAntLib.jar" description= "Creates the remoteAnt.jar" depends="init">
<property name="destdir" value="${temp.folder}/lib/remoteAnt.jar.bin"/>
<delete dir="${destdir}"/>
<mkdir dir="${destdir}"/>
<javac target="1.6" source="1.6" destdir="${destdir}" failonerror="true" verbose="false" debug="on" includeAntRuntime="yes">
<src path="${basedir}/Remote Ant Support"/>
<compilerarg value="-Xlint"/>
<classpath>
<dirset dir="${basedir}/..">
<include name="org.eclipse.ant.launching/common_bin"/>
</dirset>
<dirset dir="${basedir}/../../..">
<include name="eclipse.platform.swt/bundles/org.eclipse.swt/bin"/>
</dirset>
<fileset dir="${eclipse.home}">
<include name="plugins/org.eclipse.swt*.jar"/>
<include name="plugins/org.eclipse.ant.launching*.jar"/>
</fileset>
</classpath>
</javac>
<copy file="${basedir}/remote_support_bin/META-INF/eclipse.inf" tofile="${destdir}/META-INF/eclipse.inf"/>
<copy file="${basedir}/remote_support_bin/org/eclipse/ant/internal/ui/antsupport/inputhandler/RemoteAntMessages.properties" tofile="${destdir}/org/eclipse/ant/internal/ui/antsupport/inputhandler/RemoteAntMessages.properties"/>
<mkdir dir="${build.result.folder}/lib"/>
<jar destfile="${build.result.folder}/lib/remoteAnt.jar" basedir="${destdir}"/>
<delete dir="${temp.folder}"/>
</target>
<target name="clean" description="Deletes previous build remnants" depends="init">
<delete file="${build.result.folder}/lib/remoteAnt.jar"/>
<delete dir="${temp.folder}"/>
</target>
<!-- Empty target for "After a Clean" task (we don't want to rebuild the Jar here, e.g. on checkout). -->
<target name="after_clean"/>
</project>