Path: blob/master/test/functional/InstrumentationAgent/build.xml
6000 views
<?xml version="1.0"?>12<!--3Copyright (c) 2016, 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="Instrumentation javaagent jar" default="build" basedir=".">25<taskdef resource="net/sf/antcontrib/antlib.xml" />26<description>27Build Instrumentation agent java agent28</description>2930<!-- set global properties for this build -->31<property name="DEST" value="${BUILD_ROOT}/functional/InstrumentationAgent" />3233<!--Properties for this particular build-->34<property name="src" location="./src" />35<property name="build" location="./bin" />36<property name="jarfile" value="${DEST}/instrumentation.jar" />3738<target name="init">39<mkdir dir="${DEST}" />40<mkdir dir="${build}" />41</target>4243<target name="compile" depends="init" description="using java ${JDK_VERSION} to compile the source ">44<echo>Ant version is ${ant.version}</echo>45<echo>============COMPILER SETTINGS============</echo>46<echo>===fork: yes</echo>47<echo>===executable: ${compiler.javac}</echo>48<echo>===debug: on</echo>49<echo>===destdir: ${DEST}</echo>50<javac srcdir="${src}" destdir="${build}" debug="true" fork="true" executable="${compiler.javac}" includeAntRuntime="false" encoding="ISO-8859-1">51<src path="${src}" />52</javac>53</target>5455<target name="dist" depends="compile" description="generate the distribution" >56<echo>===DEST: ${DEST}</echo>57<mkdir dir="${DEST}"/>58<jar jarfile="${jarfile}" filesonly="true" manifest="./META-INF/MANIFEST.MF">59<fileset dir="${build}"/>60</jar>61</target>6263<target name="clean" depends="dist" description="clean up">64<!-- Delete the ${build} directory trees -->65<delete dir="${build}" />66</target>6768<target name="check-jar">69<available file="${jarfile}" property="jar.exist"/>70</target>7172<target name="build" depends="check-jar" unless="jar.exist">73<antcall target="clean" inheritall="true" />74</target>75</project>767778