|
| 1 | +<?xml version="1.0"?> |
| 2 | + |
| 3 | +<!-- |
| 4 | +Copyright IBM Corp. and others 2025 |
| 5 | +
|
| 6 | +This program and the accompanying materials are made available under |
| 7 | +the terms of the Eclipse Public License 2.0 which accompanies this |
| 8 | +distribution and is available at https://www.eclipse.org/legal/epl-2.0/ |
| 9 | +or the Apache License, Version 2.0 which accompanies this distribution and |
| 10 | +is available at https://www.apache.org/licenses/LICENSE-2.0. |
| 11 | +
|
| 12 | +This Source Code may also be made available under the following |
| 13 | +Secondary Licenses when the conditions for such availability set |
| 14 | +forth in the Eclipse Public License, v. 2.0 are satisfied: GNU |
| 15 | +General Public License, version 2 with the GNU Classpath |
| 16 | +Exception [1] and GNU General Public License, version 2 with the |
| 17 | +OpenJDK Assembly Exception [2]. |
| 18 | +
|
| 19 | +[1] https://www.gnu.org/software/classpath/license.html |
| 20 | +[2] https://openjdk.org/legal/assembly-exception.html |
| 21 | +
|
| 22 | +SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0 OR GPL-2.0-only WITH OpenJDK-assembly-exception-1.0 |
| 23 | +--> |
| 24 | +<project name="ImageReader" default="build" basedir="."> |
| 25 | + <taskdef resource="net/sf/antcontrib/antlib.xml" /> |
| 26 | + <description> |
| 27 | + Build cmdLineTests_imageReaderInitializationTest |
| 28 | + </description> |
| 29 | + |
| 30 | + <import file="${TEST_ROOT}/functional/cmdLineTests/buildTools.xml" /> |
| 31 | + |
| 32 | + <!-- set properties for this build --> |
| 33 | + <property name="DEST" value="${BUILD_ROOT}/functional/cmdLineTests/imageReaderInitializationTest" /> |
| 34 | + <property name="src" location="src" /> |
| 35 | + <property name="build" location="bin" /> |
| 36 | + |
| 37 | + <target name="init"> |
| 38 | + <mkdir dir="${DEST}" /> |
| 39 | + <mkdir dir="${build}" /> |
| 40 | + </target> |
| 41 | + |
| 42 | + <target name="compile" depends="init" description="Using java ${JDK_VERSION} to compile the source"> |
| 43 | + <echo>Ant version is ${ant.version}</echo> |
| 44 | + <echo>============COMPILER SETTINGS============</echo> |
| 45 | + <echo>===fork: yes</echo> |
| 46 | + <echo>===executable: ${compiler.javac}</echo> |
| 47 | + <echo>===debug: on</echo> |
| 48 | + <echo>===destdir: ${DEST}</echo> |
| 49 | + <javac srcdir="${src}" destdir="${build}" debug="true" fork="true" executable="${compiler.javac}" includeAntRuntime="false" encoding="ISO-8859-1"> |
| 50 | + <src path="${src}" /> |
| 51 | + </javac> |
| 52 | + </target> |
| 53 | + |
| 54 | + <target name="dist" depends="compile" description="generate the distribution"> |
| 55 | + <jar jarfile="${DEST}/imageReaderInitializationTest.jar" filesonly="true"> |
| 56 | + <fileset dir="${build}" /> |
| 57 | + <fileset dir="${src}" /> |
| 58 | + </jar> |
| 59 | + <copy todir="${DEST}"> |
| 60 | + <fileset dir="${src}/../"> |
| 61 | + <include name="**/*.mk" /> |
| 62 | + <include name="**/*.xml" /> |
| 63 | + </fileset> |
| 64 | + </copy> |
| 65 | + </target> |
| 66 | + |
| 67 | + <target name="clean" depends="dist" description="clean up"> |
| 68 | + <!-- Delete the ${build} directory trees --> |
| 69 | + <delete dir="${build}" /> |
| 70 | + </target> |
| 71 | + |
| 72 | + <target name="build" depends="buildCmdLineTestTools"> |
| 73 | + <antcall target="clean" inheritall="true" /> |
| 74 | + </target> |
| 75 | +</project> |
0 commit comments