Path: blob/master/test/functional/Java12andUp/build.xml
6000 views
<?xml version="1.0"?>12<!--3Copyright (c) 2018, 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-->2324<project name="Java12AndUp" default="build" basedir=".">25<taskdef resource='net/sf/antcontrib/antlib.xml'/>26<description>27Tests for Java 12 and up28</description>2930<!-- set global properties for this build -->31<property name="DEST" value="${BUILD_ROOT}/functional/Java12andUp" />3233<!--Properties for this particular build-->34<property name="src" location="./src"/>35<property name="build" location="./bin"/>36<property name="LIB" value="testng,jcommander"/>37<import file="${TEST_ROOT}/TKG/scripts/getDependencies.xml"/>3839<target name="init">40<mkdir dir="${DEST}" />41<mkdir dir="${build}"/>42</target>4344<target name="compile" depends="init,getDependentLibs" description="Using java ${JDK_VERSION} to compile the source" >45<echo>Ant version is ${ant.version}</echo>46<echo>============COMPILER SETTINGS============</echo>47<echo>===fork: yes</echo>48<echo>===executable: ${compiler.javac}</echo>49<echo>===debug: on</echo>50<echo>===destdir: ${DEST}</echo>5152<javac srcdir="${src}" destdir="${build}" debug="true" fork="true" executable="${compiler.javac}" includeAntRuntime="false" encoding="ISO-8859-1">53<src path="${src}"/>54<classpath>55<pathelement location="${LIB_DIR}/testng.jar"/>56<pathelement location="${LIB_DIR}/jcommander.jar"/>57<pathelement location="${build}" />58</classpath>59</javac>60</target>6162<target name="dist" depends="compile" description="generate the distribution" >63<mkdir dir="${DEST}"/>64<jar jarfile="${DEST}/GeneralTest.jar" filesonly="true">65<fileset dir="${build}"/>66<fileset dir="${src}/../" includes="*.properties,*.xml"/>67</jar>68<copy todir="${DEST}">69<fileset dir="${src}/../" includes="*.xml" />70<fileset dir="${src}/../" includes="*.mk" />71</copy>72</target>7374<target name="build" >75<if>76<not>77<matches string="${JDK_VERSION}" pattern="^(8|9|10|11)$$" />78</not>79<then>80<antcall target="clean" inheritall="true" />81</then>82</if>83</target>8485<target name="clean" depends="dist" description="clean up" >86<delete dir="${build}"/>87</target>88</project>899091