1<!-- 2* © 2016 and later: Unicode, Inc. and others. 3* License & terms of use: http://www.unicode.org/copyright.html#License 4******************************************************************************* 5* Copyright (C) 2009-2015, International Business Machines Corporation and * 6* others. All Rights Reserved. * 7******************************************************************************* 8--> 9<project name="build-tools" default="build" basedir="."> 10 <property file="build-local.properties"/> 11 <property file="build.properties"/> 12 13 <!-- before importing common-targets.xml --> 14 <condition property="alt.src.dir" value="out/tmp-src-pre8"> 15 <or> 16 <equals arg1="${ant.java.version}" arg2="1.6"/> 17 <equals arg1="${ant.java.version}" arg2="1.7"/> 18 </or> 19 </condition> 20 21 <condition property="src.dir" value="${alt.src.dir}"> 22 <isset property="alt.src.dir"/> 23 </condition> 24 25 <import file="${shared.dir}/build/common-targets.xml"/> 26 27 <path id="javac.classpathref"> 28 <path refid="javac.classpathref.${ant.project.name}"/> 29 </path> 30 <property name="jar.name" value="icu4j-${ant.project.name}.jar"/> 31 <property name="src.jar.name" value="icu4j-${ant.project.name}-src.jar"/> 32 33 <target name="build" depends="compile, copy, jar" description="Build the project"/> 34 35 <target name="build-all" depends="@build-all" description="Build the project including all dependencies"/> 36 37 <target name="clean" depends="@clean" description="Clean up the build outputs"/> 38 39 <target name="compile" depends="copy-src-pre8, @compile" description="Compile java source files"/> 40 41 <target name="copy" depends="@copy" description="Copy non-java runtime files to the project's binary directory"/> 42 43 <target name="jar" depends="compile, copy, @jar" description="Create the project's jar file"/> 44 45 <target name="src-jar" depends="copy-src-pre8, @src-jar" description="Create the project's source jar file"/> 46 47 <!-- Override a source file for supporting JDK 8 JavaDoc --> 48 <target name="copy-src-pre8" if="alt.src.dir"> 49 <echo message="Building ICU4J build tools with JDK7 or older tools..."/> 50 <mkdir dir="${alt.src.dir}"/> 51 <!-- copy all files under 'src' --> 52 <copy todir="${alt.src.dir}"> 53 <fileset dir="src"/> 54 </copy> 55 <!-- overwrite jdk7 or older specific source file --> 56 <copy todir="${alt.src.dir}" overwrite="yes"> 57 <fileset dir="src-pre8"/> 58 </copy> 59 </target> 60</project>