Path: blob/master/test/functional/cmdline_options_tester/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="cmdline_options_tester" default="build" basedir=".">25<taskdef resource='net/sf/antcontrib/antlib.xml'/>26<description>27Build cmdline_options_tester28</description>2930<!-- Define global properties -->31<property name="j9exclude_file_support" location="../J9 Exclude File Support"/>3233<!-- set global properties for this build -->34<property name="DEST" value="${BUILD_ROOT}/functional/cmdline_options_tester" />35<property name="jarfile" value="${DEST}/cmdlinetester.jar" />3637<!--Properties for this particular build-->38<property name="src" location="./src"/>39<property name="build" location="./bin"/>4041<target name="init">42<mkdir dir="${DEST}" />43<mkdir dir="${build}"/>44</target>4546<target name="compile" depends="init" description="compile the source ">47<echo>Ant version is ${ant.version}</echo>48<echo>============COMPILER SETTINGS============</echo>49<echo>===fork: yes</echo>50<echo>===executable: ${compiler.javac}</echo>51<echo>===debug: on</echo>52<echo>===destdir: ${DEST}</echo>53<javac srcdir="${src}" destdir="${build}" debug="true" fork="true" executable="${compiler.javac}" includeAntRuntime="false" encoding="ISO-8859-1">54<src path="${src}"/>55<src path="${j9exclude_file_support}"/>56</javac>57</target>5859<target name="dist" depends="compile" description="Generate the distribution">60<!-- Store all class files in cmdlinetester.jar file -->61<jar jarfile="${jarfile}" filesonly="true" duplicate="fail">62<manifest>63<attribute name="Main-Class" value="MainTester"/>64</manifest>65<fileset dir="${build}"/>66<fileset dir="${src}"/>67<fileset dir="${j9exclude_file_support}"/>68</jar>69<copy todir="${DEST}">70<fileset dir="${src}/../" includes="*.xml"/>71</copy>72</target>7374<target name="clean" depends="dist" description="clean up" >75<!-- Delete the ${build} directory trees -->76<delete dir="${build}"/>77</target>7879<target name="check-jar">80<available file="${jarfile}" property="jar.exist"/>81</target>8283<target name="build" depends="check-jar" unless="jar.exist">84<antcall target="clean" inheritall="true" />85</target>86</project>878889