blob: 496694ee57fe44e5ed91b3b6dfdcd563d4640441 [file] [log] [blame]
* © 2016 and later: Unicode, Inc. and others.
* License & terms of use:
* Copyright (C) 2009-2015, International Business Machines Corporation and *
* others. All Rights Reserved. *
<project name="build-tools" default="build" basedir=".">
<property file=""/>
<property file=""/>
<!-- before importing common-targets.xml -->
<condition property="alt.src.dir" value="out/tmp-src-pre8">
<equals arg1="${}" arg2="1.7"/>
<condition property="src.dir" value="${alt.src.dir}">
<isset property="alt.src.dir"/>
<import file="${shared.dir}/build/common-targets.xml"/>
<path id="javac.classpathref">
<path refid="javac.classpathref.${}"/>
<property name="" value="icu4j-${}.jar"/>
<property name="" value="icu4j-${}-src.jar"/>
<target name="build" depends="compile, copy, jar" description="Build the project"/>
<target name="build-all" depends="@build-all" description="Build the project including all dependencies"/>
<target name="clean" depends="@clean" description="Clean up the build outputs"/>
<target name="compile" depends="copy-src-pre8, @compile" description="Compile java source files"/>
<target name="copy" depends="@copy" description="Copy non-java runtime files to the project's binary directory"/>
<target name="jar" depends="compile, copy, @jar" description="Create the project's jar file"/>
<target name="src-jar" depends="copy-src-pre8, @src-jar" description="Create the project's source jar file"/>
<!-- Override a source file for supporting JDK 8 JavaDoc -->
<target name="copy-src-pre8" if="alt.src.dir">
<echo message="Building ICU4J build tools with JDK7 or older tools..."/>
<mkdir dir="${alt.src.dir}"/>
<!-- copy all files under 'src' -->
<copy todir="${alt.src.dir}">
<fileset dir="src"/>
<!-- overwrite jdk7 or older specific source file -->
<copy todir="${alt.src.dir}" overwrite="yes">
<fileset dir="src-pre8"/>