| <?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 tests support jar" default="build" basedir=".."> |
| |
| <target name="build" description="Removes all build artifacts, recreates the support jar, and refreshes this plugin's resources" depends="clean, lib/antTestsSupport.jar"/> |
| |
| <target name="init"> |
| <property name="temp.folder" value="${basedir}/temp.folder"/> |
| <property name="build.result.folder" value="${basedir}"/> |
| </target> |
| |
| <target name="lib/antTestsSupport.jar" depends="init" description= "Builds the support JAR"> |
| <property name="destdir" value="${temp.folder}/lib/antTestsSupport.jar.bin"/> |
| <delete dir="${destdir}"/> |
| <mkdir dir="${destdir}"/> |
| <!-- copy necessary resources --> |
| <copy todir="${destdir}"> |
| <fileset dir="${basedir}/test_support_bin/"/> |
| </copy> |
| <mkdir dir="${build.result.folder}/lib"/> |
| <jar destfile="${build.result.folder}/lib/antTestsSupport.jar" basedir="${destdir}"/> |
| <delete dir="${temp.folder}"/> |
| </target> |
| |
| <target name="clean" depends="init"> |
| <delete file="${build.result.folder}/lib/antTestsSupport.jar"/> |
| <delete dir="${temp.folder}"/> |
| </target> |
| </project> |