Path: blob/master/test/functional/CacheManagement/build.xml
6000 views
<?xml version="1.0"?>1<!--2Copyright (c) 2010, 2021 IBM Corp. and others34This program and the accompanying materials are made available under5the terms of the Eclipse Public License 2.0 which accompanies this6distribution and is available at https://www.eclipse.org/legal/epl-2.0/7or the Apache License, Version 2.0 which accompanies this distribution and8is available at https://www.apache.org/licenses/LICENSE-2.0.910This Source Code may also be made available under the following11Secondary Licenses when the conditions for such availability set12forth in the Eclipse Public License, v. 2.0 are satisfied: GNU13General Public License, version 2 with the GNU Classpath14Exception [1] and GNU General Public License, version 2 with the15OpenJDK Assembly Exception [2].1617[1] https://www.gnu.org/software/classpath/license.html18[2] http://openjdk.java.net/legal/assembly-exception.html1920SPDX-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-exception21-->22<project name="CacheManagement" default="build" basedir=".">23<taskdef resource='net/sf/antcontrib/antlib.xml' />24<description>25Build CacheManagement Tests26</description>27<import file="${TEST_ROOT}/functional/cmdLineTests/buildTools.xml" />2829<!-- set global properties for this build -->30<property name="DEST" value="${BUILD_ROOT}/functional/CacheManagement" />31<property name="src" location="src" />32<property name="src_80" location="src_80" />33<property name="src_90_up" location="src_90_up" />34<property name="build" location="bin" />35<property name="testcodebuild" location="testcodebuild" />36<property name="LIB" value="junit4" />37<import file="${TEST_ROOT}/TKG/scripts/getDependencies.xml" />3839<target name="init">40<mkdir dir="${DEST}" />41<mkdir dir="${build}" />42<mkdir dir="${testcodebuild}" />43</target>4445<target name="compile" depends="init,getDependentLibs" description="Using java ${JDK_VERSION} to compile the source">46<echo>Ant version is ${ant.version}</echo>47<echo>============COMPILER SETTINGS============</echo>48<echo>===fork: yes</echo>49<echo>===executable: ${compiler.javac}</echo>50<echo>===debug: on</echo>51<echo>===destdir: ${DEST}</echo>52<javac srcdir="testcode" destdir="${testcodebuild}" debug="on" debuglevel="lines,vars,source" executable="${compiler.javac}" includeAntRuntime="false" encoding="ISO-8859-1" />53<javac srcdir="testcode" destdir="${build}" debug="on" debuglevel="lines,vars,source" executable="${compiler.javac}" includeAntRuntime="false" encoding="ISO-8859-1" />54<javac destdir="${build}" debug="true" fork="true" executable="${compiler.javac}" includeAntRuntime="false" encoding="ISO-8859-1">55<src path="${src}" />56<classpath>57<pathelement location="${LIB_DIR}/junit4.jar" />58</classpath>59</javac>60</target>61<target name="dist" depends="compile" description="generate the distribution">62<!-- CONFIG ARTEFACTS & TEST ARTEFACTS - move them to the build dir... -->63<copy todir="${build}">64<fileset dir="configs" />65<fileset dir="testcode" />66</copy>67<jar jarfile="${build}/testcode.jar" filesonly="true">68<fileset dir="${testcodebuild}" />69</jar>70<jar jarfile="${DEST}/CacheManagement.jar" filesonly="true">71<fileset dir="${build}" />72<fileset dir="${src}" />73<fileset dir="${src}/../" includes="*.properties,*.xml" />74</jar>75<jar jarfile="${DEST}/testcode.jar" filesonly="true">76<fileset dir="${testcodebuild}" />77</jar>78<copy todir="${DEST}">79<fileset dir="${src}/../" includes="*.xml" />80<fileset dir="${src}/../" includes="*.mk" />81</copy>82</target>8384<target name="clean" depends="dist" description="clean up">85<!-- Delete the ${build} directory trees -->86<delete dir="${build}" />87<delete dir="${testcodebuild}" />88</target>8990<target name="build" depends="buildCmdLineTestUtils">91<if>92<or>93<equals arg1="${JDK_IMPL}" arg2="ibm" />94<equals arg1="${JDK_IMPL}" arg2="openj9" />95</or>96<then>97<antcall target="clean" inheritall="true" />98</then>99</if>100</target>101</project>102103104