1<!-- 2* © 2017 and later: Unicode, Inc. and others. 3* License & terms of use: http://www.unicode.org/copyright.html 4--> 5<!-- 6/* 7******************************************************************************* 8* Copyright (C) 2006-2013, International Business Machines Corporation and * 9* others. All Rights Reserved. * 10******************************************************************************* 11* This is the ant build file for ICU tools. 12*/ 13--> 14<project name="release-tools" default="tools" basedir="." > 15 <target name="init"> 16 <tstamp/> 17 <property file="api-report.properties" /> 18 <property name="apireport.jar" location="target/icu4c-apireport.jar"/> 19 <property name="rsrc.dir" location="${basedir}/src/main/resources"/> 20 <echo message="java home: ${java.home}"/> 21 <echo message="java version: ${java.version}"/> 22 <echo message="java vendor: ${java.vm.vendor}"/> 23 <echo message="ant java version: ${ant.java.version}"/> 24 <echo message="${ant.version}"/> 25 <echo message="tools jar=${apireport.jar}" /> 26 <echo message="${basedir}"/> 27 <condition property="apireport.jar.exists"> 28 <available file="${apireport.jar}" type="file"/> 29 </condition> 30 </target> 31 32 <target name="tools" depends="init" description="compile release tools" unless="apireport.jar.exists"> 33 <exec executable="mvn" searchpath="true"> 34 <arg value="package"/> 35 </exec> 36 </target> 37 38 <target name="clean" depends="init" description="remove all build targets"> 39 <exec executable="mvn" searchpath="true"> 40 <arg value="clean"/> 41 </exec> 42 </target> 43 44 <target name="apireport" depends="tools"> 45 <java jar="${apireport.jar}" fork="yes" failonerror="true"> 46 47 <arg value = "--olddir"/> 48 <arg value = "${olddir}"/> 49 50 <arg value = "--newdir"/> 51 <arg value = "${newdir}"/> 52 53 <arg value = "--cppxslt"/> 54 <arg value = "${rsrc.dir}/com/ibm/icu/dev/tools/docs/dumpAllCppFunc.xslt"/> 55 56 <arg value = "--cxslt"/> 57 <arg value = "${rsrc.dir}/com/ibm/icu/dev/tools/docs/dumpAllCFunc.xslt"/> 58 59 <arg value = "--reportxslt"/> 60 <arg value = "${rsrc.dir}/com/ibm/icu/dev/tools/docs/genReport.xslt"/> 61 62 <arg value = "--resultfile"/> 63 <arg value = "${basedir}/APIChangeReport.html"/> 64 65 </java> 66 </target> 67 68 <target name="apireport_md" depends="tools"> 69 <java jar="${apireport.jar}" fork="yes" failonerror="true"> 70 71 <arg value = "--olddir"/> 72 <arg value = "${olddir}"/> 73 74 <arg value = "--newdir"/> 75 <arg value = "${newdir}"/> 76 77 <arg value = "--cppxslt"/> 78 <arg value = "${rsrc.dir}/com/ibm/icu/dev/tools/docs/dumpAllCppFunc.xslt"/> 79 80 <arg value = "--cxslt"/> 81 <arg value = "${rsrc.dir}/com/ibm/icu/dev/tools/docs/dumpAllCFunc.xslt"/> 82 83 <arg value = "--reportxslt"/> 84 <arg value = "${rsrc.dir}/com/ibm/icu/dev/tools/docs/genReport_md.xslt"/> 85 86 <arg value = "--resultfile"/> 87 <arg value = "${basedir}/APIChangeReport.md"/> 88 89 </java> 90 </target> 91 <target name="apireport_xml" depends="tools"> 92 <java jar="${apireport.jar}" fork="yes" failonerror="true"> 93 94 <arg value = "--olddir"/> 95 <arg value = "${olddir}"/> 96 97 <arg value = "--newdir"/> 98 <arg value = "${newdir}"/> 99 100 <arg value = "--cppxslt"/> 101 <arg value = "${rsrc.dir}/com/ibm/icu/dev/tools/docs/dumpAllCppFunc_xml.xslt"/> 102 103 <arg value = "--cxslt"/> 104 <arg value = "${rsrc.dir}/com/ibm/icu/dev/tools/docs/dumpAllCFunc_xml.xslt"/> 105 106 <arg value = "--reportxslt"/> 107 <arg value = "${rsrc.dir}/com/ibm/icu/dev/tools/docs/genreport_xml.xslt"/> 108 109 <arg value = "--resultfile"/> 110 <arg value = "${basedir}/APIChangeReport.xml"/> 111 112 </java> 113 </target> 114</project> 115