blob: 0c87b9c8490bc67698bce4b323fb854d5c0cf84e [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2005, 2013 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 Ant support JAR" default="build" basedir="..">
<target name="build" description="Cleans, builds and refreshes" depends="clean, lib/antrunnerlib.jar"/>
<target name="init">
<property name="temp.folder" value="${basedir}/temp.folder"/>
<property name="build.result.folder" value="${basedir}"/>
</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}"/>
<!-- copy necessary resources -->
<copy todir="${destdir}">
<fileset dir="${basedir}/ant_runner_support_bin/"/>
</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>