Path: blob/master/test/functional/Panama/build.xml
6000 views
<?xml version="1.0"?>12<!--3Copyright (c) 2017, 2021 IBM Corp. and others45This program and the accompanying materials are made available under6the terms of the Eclipse Public License 2.0 which accompanies this7distribution and is available at https://www.eclipse.org/legal/epl-2.0/8or the Apache License, Version 2.0 which accompanies this distribution and9is available at https://www.apache.org/licenses/LICENSE-2.0.1011This Source Code may also be made available under the following12Secondary Licenses when the conditions for such availability set13forth in the Eclipse Public License, v. 2.0 are satisfied: GNU14General Public License, version 2 with the GNU Classpath15Exception [1] and GNU General Public License, version 2 with the16OpenJDK Assembly Exception [2].1718[1] https://www.gnu.org/software/classpath/license.html19[2] http://openjdk.java.net/legal/assembly-exception.html2021SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception22-->23<project name="Test Example" default="build" basedir=".">24<taskdef resource='net/sf/antcontrib/antlib.xml'/>25<description>26Paname project27</description>2829<!-- set global properties for this build -->30<property name="DEST" value="${BUILD_ROOT}/functional/Panama" />3132<!--Properties for this particular build-->33<property name="src" location="./src"/>34<property name="build" location="./bin"/>35<property name="transformerListener" location="${TEST_ROOT}/Utils/src"/>36<property name="LIB" value="jcommander,testng"/>37<import file="${TEST_ROOT}/TKG/scripts/getDependencies.xml"/>3839<!--<property name="src.level" value="1.9"/>40<property name="target.level" value="1.9"/> -->4142<target name="init">43<mkdir dir="${DEST}" />44<mkdir dir="${build}"/>45<copy todir="${DEST}">46<fileset dir="${TEST_ROOT}/functional/Panama" includes="libpanamatest.so" />47<fileset dir="${LIB_DIR}" includes="panamatest.jar" />48</copy>49</target>5051<target name="compile" depends="init,getDependentLibs" description="Using java ${JDK_VERSION} to compile the source " >52<echo>Ant version is ${ant.version}</echo>53<echo>============COMPILER SETTINGS============</echo>54<echo>===fork: yes</echo>55<echo>===executable: ${compiler.javac}</echo>56<echo>===debug: on</echo>57<echo>===destdir: ${DEST}</echo>58<javac srcdir="${src}" destdir="${build}" debug="true" fork="true" executable="${compiler.javac}" encoding="ISO-8859-1">59<src path="${src}"/>60<src path="${transformerListener}" />61<classpath>62<pathelement location="${LIB_DIR}/testng.jar"/>63<pathelement location="${LIB_DIR}/jcommander.jar"/>64<pathelement location="${DEST}/panamatest.jar"/>65</classpath>66</javac>67</target>6869<target name="dist" depends="compile" description="generate the distribution" >70<mkdir dir="${DEST}"/>71<jar jarfile="${DEST}/PanamaTests.jar" filesonly="true">72<fileset dir="${build}"/>73<fileset dir="${src}/../" includes="*.properties,*.xml"/>74</jar>75<copy todir="${DEST}">76<fileset dir="${src}/../" includes="*.xml" />77<fileset dir="${src}/../" includes="*.mk" />78</copy>79</target>8081<target name="build" >82<if>83<equals arg1="${JDK_VERSION}" arg2="Panama"/>84<then>85<antcall target="clean" inheritall="true" />86</then>87</if>88</target>8990<target name="clean" depends="dist" description="clean up" >91<!-- Delete the ${build} directory trees -->92<delete dir="${build}"/>93</target>94</project>959697