2002-07-26 00:24:33 +00:00
|
|
|
<!--
|
2000-03-10 04:18:06 +00:00
|
|
|
/*
|
|
|
|
*******************************************************************************
|
2008-03-11 07:18:16 +00:00
|
|
|
* Copyright (C) 1997-2008, International Business Machines Corporation and *
|
2000-03-10 04:18:06 +00:00
|
|
|
* others. All Rights Reserved. *
|
|
|
|
*******************************************************************************
|
2000-04-13 22:52:41 +00:00
|
|
|
* This is the ant build file for ICU4J. See readme.html for more information.
|
2000-03-10 04:18:06 +00:00
|
|
|
*/
|
|
|
|
-->
|
2000-03-10 01:33:53 +00:00
|
|
|
|
2008-03-11 07:18:16 +00:00
|
|
|
<project name="icu4j" default="core" basedir=".">
|
2000-03-10 01:33:53 +00:00
|
|
|
|
2008-05-27 18:23:23 +00:00
|
|
|
<!-- ### Begin Clover 2.x setup ### -->
|
|
|
|
<taskdef resource="cloverlib.xml" onerror="ignore" />
|
2007-04-20 21:02:49 +00:00
|
|
|
|
|
|
|
<target name="with.clover">
|
|
|
|
<mkdir dir="tmp/" />
|
|
|
|
<clover-setup initString="tmp/icu4j.db">
|
|
|
|
<files>
|
|
|
|
<exclude name="**/dev/**/*.java" />
|
|
|
|
</files>
|
|
|
|
<methodContext name="API" regexp="(.* )?public .*" />
|
|
|
|
</clover-setup>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clover.summary" depends="with.clover">
|
|
|
|
<clover-report>
|
|
|
|
<current outfile="icu4j_html" summary="true">
|
|
|
|
<format type="html" srcLevel="false" />
|
|
|
|
</current>
|
|
|
|
</clover-report>
|
|
|
|
</target>
|
|
|
|
<target name="clover.report" depends="with.clover">
|
|
|
|
<clover-report>
|
|
|
|
<current outfile="icu4j_html">
|
|
|
|
<format type="html" />
|
|
|
|
</current>
|
|
|
|
</clover-report>
|
|
|
|
</target>
|
|
|
|
<target name="clover.log" depends="with.clover">
|
|
|
|
<clover-log level="method" filter="private">
|
|
|
|
<package name="com.ibm.icu.text" />
|
|
|
|
<package name="com.ibm.icu.lang" />
|
|
|
|
<package name="com.ibm.icu.math" />
|
|
|
|
<package name="com.ibm.icu.util" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<package name="com.ibm.icu.charset" />
|
2007-04-20 21:02:49 +00:00
|
|
|
</clover-log>
|
|
|
|
</target>
|
|
|
|
|
2008-05-27 18:23:23 +00:00
|
|
|
<!-- ### End Clover 2.x setup ### -->
|
2007-04-20 21:02:49 +00:00
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="checkAntVersion">
|
|
|
|
<condition property="supported.ant.version">
|
|
|
|
<or>
|
|
|
|
<contains string="${ant.version}" substring="1.6." />
|
|
|
|
<contains string="${ant.version}" substring="1.7." />
|
|
|
|
<contains string="${ant.version}" substring="1.8." /> <!-- just in case -->
|
|
|
|
</or>
|
|
|
|
</condition>
|
|
|
|
<antcall target="warnAntVersion" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="warnAntVersion" unless="supported.ant.version">
|
|
|
|
<echo message="####################### WARNING #######################" />
|
|
|
|
<echo message="The version of ant used by the current configuration" />
|
|
|
|
<echo message="may not work well with this build script file. Please" />
|
|
|
|
<echo message="use ant 1.6 or later version." />
|
|
|
|
<echo message="#######################################################" />
|
|
|
|
</target>
|
2007-04-20 21:02:49 +00:00
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="init" depends="initBase,initSrc"/>
|
|
|
|
|
|
|
|
<target name="initBase"
|
|
|
|
depends="checkAntVersion"
|
|
|
|
description="Initialized ICU4J build environment">
|
2007-04-20 21:02:49 +00:00
|
|
|
<tstamp />
|
|
|
|
<property name="src.dir" value="src" />
|
|
|
|
<property name="build.dir" value="classes" />
|
|
|
|
<property name="api.dir" value="${src.dir}/com/ibm/icu/dev/tool/docs" />
|
|
|
|
<property name="doc.dir" value="doc" />
|
2007-08-25 01:15:23 +00:00
|
|
|
<property name="icudatajar.file" value="${src.dir}/com/ibm/icu/impl/data/icudata.jar" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<property name="testjar.file" value="icu4jtests.jar" />
|
|
|
|
<property name="jar.file" value="icu4j.jar" />
|
2007-09-14 06:22:51 +00:00
|
|
|
<property name="demos-jar.file" value="icu4jdemos.jar" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<property name="charsets.jar.file" value="icu4j-charsets.jar" />
|
|
|
|
<property name="jarSrc.file" value="icu4jsrc.jar" />
|
|
|
|
<property name="zipTestSrc.file" value="icu4jtsrc.zip" />
|
|
|
|
<property name="jdk.wrapper.jar.file" value="icu4jwrapper.jar" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<property name="fragment.jar.file" value="icu4jfragment.jar" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<property name="eclipse.dir" value="${src.dir}/com/ibm/icu/dev/eclipse" />
|
|
|
|
<property name="eclipse.projects.dir" value="eclipseProjects" />
|
|
|
|
<property name="wrapper.build.dir" value="classes.wrapper" />
|
|
|
|
<property name="jarDocs.file" value="icu4jdocs.jar" />
|
|
|
|
<property name="ime.translit.jar.file" value="icutransime.jar" />
|
|
|
|
<property name="ime.indic.jar.file" value="icuindicime.jar" />
|
|
|
|
<property name="ime.translit.manifest" value="${src.dir}/com/ibm/icu/dev/tool/ime/translit/manifest.stub" />
|
|
|
|
<property name="ime.indic.manifest" value="${src.dir}/com/ibm/icu/dev/tool/ime/indic/manifest.stub" />
|
|
|
|
<property name="zip.file" value="../icu4j${DSTAMP}.zip" />
|
|
|
|
<property name="zipSrc.file" value="../icu4jSrc${DSTAMP}.zip" />
|
|
|
|
<property name="tzu.src.path" value="com/ibm/icu/dev/tool/tzu" />
|
|
|
|
<property name="tzu.bin.dir" value="${basedir}/icu4jtzu" />
|
|
|
|
<property name="tzu.jar.file" value="icutzu.jar" />
|
|
|
|
<property name="tzu.test.dir" value="${basedir}/icu4jtzu/test" />
|
|
|
|
<property name="tzu.temp.dir" value="${basedir}/icu4jtzu/Temp" />
|
|
|
|
<property name="tzu.src.zip.file" value="icutzu-src.zip" />
|
|
|
|
<property name="tzu.bin.zip.file" value="icutzu-bin.zip" />
|
|
|
|
<property file="build.properties" />
|
|
|
|
<!-- fix the data folder every time there is a version update-->
|
|
|
|
|
2007-12-11 22:33:01 +00:00
|
|
|
<property name="icu4j.data.path" value="com/ibm/icu/impl/data/icudt${icu4j.data.version.number}b" />
|
2007-07-23 14:07:05 +00:00
|
|
|
<property name="icu4j.testdata.path" value="com/ibm/icu/dev/data/testdata" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<property name="icu4j.javac.source" value="1.3" />
|
|
|
|
<property name="icu4j.javac.target" value="1.3" />
|
|
|
|
|
|
|
|
<path id="build.classpath">
|
|
|
|
<pathelement path="${build.dir}" />
|
|
|
|
</path>
|
|
|
|
|
|
|
|
<property name="richedit.dir" value="richedit" />
|
|
|
|
<property name="richedit.doc.dir" value="${richedit.dir}/doc" />
|
|
|
|
<property name="richedit.jar.file" value="${richedit.dir}/richedit.jar" />
|
|
|
|
<property name="richedit.zip.file" value="${richedit.dir}/richedit.zip" />
|
|
|
|
<property name="richedit.manifest" value="${src.dir}/com/ibm/richtext/manifest.stub" />
|
|
|
|
|
|
|
|
<!-- Load environment variables -->
|
|
|
|
<property environment="env" />
|
|
|
|
|
|
|
|
<!-- Capture the computer name in a cross-platform manner -->
|
|
|
|
<property name="env.COMPUTERNAME" value="${env.HOSTNAME}" />
|
|
|
|
|
2007-08-20 22:17:50 +00:00
|
|
|
<!-- JavaDoc params -->
|
|
|
|
<property name="doc.params" value="-breakiterator -use -tagletpath ./classes -taglet com.ibm.icu.dev.tool.docs.ICUTaglet -group 'ICU Core' 'com.ibm.icu.lang*:com.ibm.icu.math*:com.ibm.icu.text*:com.ibm.icu.util*:com.ibm.icu.charset' -group 'ICU Tests' 'com.ibm.icu.dev.test*' -group 'Demos' 'com.ibm.icu.dev.demo*' -group 'ICU Tools' 'com.ibm.icu.dev*'" />
|
|
|
|
<property name="richeditdoc.params" value="-breakiterator -use -tagletpath ./classes -taglet com.ibm.icu.dev.tool.docs.ICUTaglet -group 'Rich Text Editing' 'com.ibm.richtext*'" />
|
|
|
|
|
2007-04-20 21:02:49 +00:00
|
|
|
<mkdir dir="${build.dir}" />
|
|
|
|
|
|
|
|
<echo message="java home: ${java.home}" />
|
|
|
|
<echo message="java version: ${java.version}" />
|
|
|
|
<echo message="ant java version: ${ant.java.version}" />
|
|
|
|
<echo message="${ant.version}" />
|
|
|
|
<echo message="${env.COMPUTERNAME} with ${os.name} ${os.version} on ${os.arch}" />
|
|
|
|
<echo message="clover initstring = '${clover.initstring}'" />
|
|
|
|
|
2007-08-20 22:17:50 +00:00
|
|
|
<!-- ## Java version dependent build configuration ##-->
|
|
|
|
|
|
|
|
<!-- JRE lib version used for building ICU4J -->
|
|
|
|
<condition property="target.rt.version" value="J2SE13">
|
2007-08-22 08:28:38 +00:00
|
|
|
<contains string="${java.version}" substring="1.3." />
|
2007-08-20 22:17:50 +00:00
|
|
|
</condition>
|
|
|
|
<condition property="target.rt.version" value="J2SE14">
|
2007-08-22 08:28:38 +00:00
|
|
|
<contains string="${java.version}" substring="1.4." />
|
2007-08-20 22:17:50 +00:00
|
|
|
</condition>
|
|
|
|
<condition property="target.rt.version" value="J2SE15">
|
2007-08-22 08:28:38 +00:00
|
|
|
<contains string="${java.version}" substring="1.5." />
|
2007-08-20 22:17:50 +00:00
|
|
|
</condition>
|
|
|
|
<condition property="target.rt.version" value="JAVASE6">
|
2007-08-22 08:28:38 +00:00
|
|
|
<contains string="${java.version}" substring="1.6." />
|
2007-08-20 22:17:50 +00:00
|
|
|
</condition>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<fail message="Failed to detect Java runtime library version used for building ICU4J"
|
|
|
|
unless="target.rt.version" />
|
2007-08-20 22:17:50 +00:00
|
|
|
<echo message="target runtime environment: ${target.rt.version}" />
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<condition property="default.java.build.target">
|
2007-08-20 22:17:50 +00:00
|
|
|
<equals arg1="${target.rt.version}" arg2="${default.target.rt.version}" />
|
|
|
|
</condition>
|
2007-08-22 08:28:38 +00:00
|
|
|
|
|
|
|
<!-- Specification title in manifest file -->
|
|
|
|
<condition property="manifest.specification.title" value="ICU4J Compatible Build for ${target.rt.version}">
|
|
|
|
<not>
|
|
|
|
<isset property="default.java.build.target" />
|
|
|
|
</not>
|
|
|
|
</condition>
|
|
|
|
<property name="manifest.specification.title" value="ICU4J" />
|
2007-08-20 22:17:50 +00:00
|
|
|
|
|
|
|
<condition property="before.java14">
|
|
|
|
<or>
|
|
|
|
<equals arg1="${target.rt.version}" arg2="FOUNDATION10"/>
|
|
|
|
<equals arg1="${target.rt.version}" arg2="J2SE13"/>
|
|
|
|
</or>
|
|
|
|
</condition>
|
|
|
|
|
|
|
|
<condition property="before.java15">
|
|
|
|
<or>
|
|
|
|
<equals arg1="${target.rt.version}" arg2="FOUNDATION10"/>
|
|
|
|
<equals arg1="${target.rt.version}" arg2="J2SE13"/>
|
|
|
|
<equals arg1="${target.rt.version}" arg2="J2SE14"/>
|
|
|
|
</or>
|
|
|
|
</condition>
|
|
|
|
|
2007-08-22 21:55:39 +00:00
|
|
|
<!-- JVM arguments for running test cases -->
|
2007-12-18 08:16:34 +00:00
|
|
|
<condition property="test.jvm.args" value="-Xms192m -Xmx224m">
|
2007-08-20 22:17:50 +00:00
|
|
|
<isset property="before.java14" />
|
|
|
|
</condition>
|
2007-12-18 08:16:34 +00:00
|
|
|
<condition property="test.jvm.args" value="-ea -Xms192m -Xmx224m -Xdisableexcessivegc">
|
|
|
|
<and>
|
|
|
|
<not>
|
|
|
|
<isset property="before.java15" />
|
|
|
|
</not>
|
|
|
|
<equals arg1="${java.vm.vendor}" arg2="IBM Corporation"/>
|
|
|
|
</and>
|
|
|
|
</condition>
|
2008-05-01 18:12:30 +00:00
|
|
|
<condition property="test.jvm.args" value="-ea -Xms192m -Xmx224m -Djava.awt.headless=true">
|
|
|
|
<and>
|
2008-05-01 18:54:47 +00:00
|
|
|
<equals arg1="${os.name}" arg2="Mac OS X"/>
|
2008-05-01 18:12:30 +00:00
|
|
|
</and>
|
|
|
|
</condition>
|
2007-12-18 08:16:34 +00:00
|
|
|
<condition property="test.jvm.args" value="-ea -Xms192m -Xmx224m">
|
2007-08-20 22:17:50 +00:00
|
|
|
<not>
|
2007-08-22 21:55:39 +00:00
|
|
|
<isset property="test.jvm.args" />
|
2007-08-20 22:17:50 +00:00
|
|
|
</not>
|
|
|
|
</condition>
|
|
|
|
|
2007-04-20 21:02:49 +00:00
|
|
|
<uptodate property="icu4j.resources" targetfile="${src.dir}/com/ibm/icu/impl/data">
|
|
|
|
<!-- note must not have '/' before 'com' in srcfiles includes arg! -->
|
|
|
|
<srcfiles dir="${build.dir}" includes="${icu4j.data.path}/res_index.res" />
|
|
|
|
</uptodate>
|
|
|
|
|
|
|
|
<uptodate property="icu4j.testdata.resources" targetfile="${src.dir}/com/ibm/icu/dev/data">
|
|
|
|
<!-- note must not have '/' before 'com' in srcfiles includes arg! -->
|
|
|
|
<srcfiles dir="${build.dir}" includes="${icu4j.testdatadata.path}/root.res" />
|
|
|
|
</uptodate>
|
|
|
|
|
2007-08-25 01:15:23 +00:00
|
|
|
<uptodate property="icu4j.module.resources" targetfile="${icudatajar.file}">
|
2007-04-20 21:02:49 +00:00
|
|
|
<srcfiles dir="${build.dir}" includes="${icu4j.data.path}/*.icu" />
|
|
|
|
</uptodate>
|
|
|
|
<!-- <echo message="icu4j.module.resources result: ${icu4j.module.resources}" /> -->
|
|
|
|
<tstamp>
|
|
|
|
<format property="date.time" pattern="yyyy-MM-dd 'at' hh:mm:ss z" locale="en,US" />
|
|
|
|
</tstamp>
|
2007-08-20 22:17:50 +00:00
|
|
|
|
2007-04-20 21:02:49 +00:00
|
|
|
<echo message="Initialized at ${date.time}" />
|
|
|
|
</target>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="displayBuildEnvWarning" unless="default.java.build.target">
|
2007-08-21 03:11:38 +00:00
|
|
|
<echo message="####################### WARNING #######################" />
|
2007-08-20 22:17:50 +00:00
|
|
|
<echo message="The JDK version used by the current build environment" />
|
|
|
|
<echo message="does not match the reference JDK version for this" />
|
|
|
|
<echo message="ICU4J release. The build outputs may not be identical" />
|
|
|
|
<echo message="to the official ICU4J binary distribution." />
|
|
|
|
<echo message="#######################################################" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="initSrc"
|
|
|
|
depends="buildMangle"
|
|
|
|
description="Run the preprocessor tool to modify Java sources for the Java runtime lib currently used.">
|
2007-08-22 08:28:38 +00:00
|
|
|
<antcall target="displayBuildEnvWarning" />
|
2007-08-20 22:17:50 +00:00
|
|
|
<!-- Build CodeMangler -->
|
|
|
|
<javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="build.classpath" source="${icu4j.javac.source}" target="${icu4j.javac.target}">
|
|
|
|
<include name="com/ibm/icu/dev/tool/docs/CodeMangler.java" />
|
|
|
|
</javac>
|
|
|
|
<!-- Run CodeMangler -->
|
|
|
|
<antcall target="doMangle">
|
|
|
|
<param name="target.defs" value="${target.rt.version}" />
|
|
|
|
<param name="input.file" value="@preprocessor.txt" />
|
|
|
|
</antcall>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="normSrc"
|
|
|
|
depends="buildMangle"
|
|
|
|
description="Run the preprocessor to normalize Java sources to the ICU source repository target JDK version">
|
|
|
|
<antcall target="doMangle">
|
|
|
|
<param name="target.defs" value="${default.target.rt.version}" />
|
|
|
|
<param name="input.file" value="@preprocessor.txt" />
|
|
|
|
</antcall>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="buildMangle" depends="initBase">
|
|
|
|
<javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="build.classpath" source="${icu4j.javac.source}" target="${icu4j.javac.target}">
|
|
|
|
<include name="com/ibm/icu/dev/tool/docs/CodeMangler.java" />
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
2008-03-28 21:34:16 +00:00
|
|
|
<target name="doMangle" unless="dontMangle">
|
2007-08-22 08:28:38 +00:00
|
|
|
<echo message="Running source code preprocessor for [${target.defs}]"/>
|
2008-06-20 01:47:53 +00:00
|
|
|
<java classname="com.ibm.icu.dev.tool.docs.CodeMangler" classpath="${build.dir}" logError="true" fork="true" dir="${basedir}">
|
2007-08-20 22:17:50 +00:00
|
|
|
<arg value="-d${target.defs}" />
|
|
|
|
<arg value="${input.file}" />
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
2007-04-20 21:02:49 +00:00
|
|
|
<!-- build everything but dist-related stuff -->
|
|
|
|
<target name="all" depends="core,tests,tools,richedit,demos,jar,docs" description="build all primary targets" />
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="resources" depends="icudata,coreData,durationdata,testdata" description="builds all the resources" />
|
2007-04-20 21:02:49 +00:00
|
|
|
|
2007-08-20 22:17:50 +00:00
|
|
|
<target name="icudata" depends="initBase" if="icu4j.resources">
|
2007-04-20 21:02:49 +00:00
|
|
|
<!-- use this target to force resources to be rebuilt -->
|
2007-08-25 01:15:23 +00:00
|
|
|
<unjar src="${icudatajar.file}" dest="${build.dir}" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<touch file="${build.dir}/${icu4j.data.path}/res_index.res" />
|
|
|
|
<copy todir="${build.dir}/META-INF">
|
|
|
|
<fileset dir="${src.dir}/META-INF" includes="**/*" />
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
2007-08-20 22:17:50 +00:00
|
|
|
<target name="durationdata" depends="initBase">
|
2007-08-06 23:22:53 +00:00
|
|
|
<copy todir="${build.dir}/com/ibm/icu/impl/duration/impl/data">
|
|
|
|
<fileset dir="${src.dir}/com/ibm/icu/impl/duration/impl/data" includes="index.txt, pfd*.xml"/>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
2007-04-20 21:02:49 +00:00
|
|
|
<!--
|
2004-06-09 03:58:42 +00:00
|
|
|
use this target to conditionally build resources only if icu4j.resources is set
|
2004-05-06 02:07:48 +00:00
|
|
|
<target name="icu" depends="init" if="icu4j.resources">
|
2003-01-28 18:55:43 +00:00
|
|
|
<unjar src="${src.dir}/com/ibm/icu/impl/data/ICULocaleData.jar" dest="${build.dir}"/>
|
|
|
|
<touch file="${build.dir}/com/ibm/icu/impl/data/LocaleElements_index.class"/>
|
|
|
|
</target>
|
2004-05-06 02:07:48 +00:00
|
|
|
-->
|
2004-05-12 20:52:55 +00:00
|
|
|
|
2007-04-20 21:02:49 +00:00
|
|
|
<!-- core does not build richedit or tests -->
|
2007-08-06 23:22:53 +00:00
|
|
|
<target name="core" depends="init,coreData,icudata,durationdata" description="build core classes and data">
|
2007-08-20 22:17:50 +00:00
|
|
|
<javac sourcepath=""
|
|
|
|
srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off"
|
|
|
|
encoding="ascii">
|
|
|
|
<include name="com/ibm/icu/charset/**/*.java" unless="before.java14" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<include name="com/ibm/icu/impl/**/*.java" />
|
2007-08-20 22:17:50 +00:00
|
|
|
<include name="com/ibm/icu/lang/**/*.java" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<include name="com/ibm/icu/math/**/*.java" />
|
|
|
|
<include name="com/ibm/icu/text/**/*.java" />
|
|
|
|
<include name="com/ibm/icu/util/**/*.java" />
|
|
|
|
</javac>
|
|
|
|
</target>
|
2001-11-28 18:04:53 +00:00
|
|
|
|
2007-04-20 21:02:49 +00:00
|
|
|
<target name="tests" depends="core,testdata" description="build tests">
|
2007-08-20 22:17:50 +00:00
|
|
|
<javac srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off">
|
|
|
|
<exclude name="com/ibm/icu/dev/test/charset/**/*.java" if="before.java14" />
|
|
|
|
<exclude name="com/ibm/icu/dev/test/perf/**/*.java" if="before.java14" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<include name="com/ibm/icu/dev/test/**/*.java" />
|
|
|
|
</javac>
|
2007-03-27 23:38:17 +00:00
|
|
|
|
2007-04-20 21:02:49 +00:00
|
|
|
</target>
|
2007-03-27 23:38:17 +00:00
|
|
|
|
2007-08-20 22:17:50 +00:00
|
|
|
<target name="demos" depends="core,testdata" unless="before.java14" description="build demos">
|
|
|
|
<javac srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off">
|
2007-04-20 21:02:49 +00:00
|
|
|
<include name="com/ibm/icu/dev/demo/**/*.java" />
|
2007-09-14 06:22:51 +00:00
|
|
|
<include name="com/ibm/icu/dev/demo/*.java" />
|
2007-04-20 21:02:49 +00:00
|
|
|
</javac>
|
|
|
|
</target>
|
2007-03-27 23:38:17 +00:00
|
|
|
|
2007-04-20 21:02:49 +00:00
|
|
|
<target name="indices" depends="icudata,build_indexgenerator">
|
|
|
|
<java classname="com.ibm.icu.dev.tool.index.IndexGenerator" classpath="${build.dir}" logError="true">
|
|
|
|
<arg value="${build.dir}/${icu4j.data.path}" />
|
|
|
|
</java>
|
|
|
|
<java classname="com.ibm.icu.dev.tool.index.IndexGenerator" classpath="${build.dir}" logError="true">
|
|
|
|
<arg value="${build.dir}/${icu4j.data.path}/rbnf" />
|
|
|
|
</java>
|
|
|
|
<java classname="com.ibm.icu.dev.tool.index.IndexGenerator" classpath="${build.dir}" logError="true">
|
|
|
|
<arg value="${build.dir}/${icu4j.data.path}/coll" />
|
|
|
|
</java>
|
|
|
|
<java classname="com.ibm.icu.dev.tool.index.IndexGenerator" classpath="${build.dir}" logError="true">
|
|
|
|
<arg value="${build.dir}/${icu4j.data.path}/translit" />
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
2007-08-20 22:17:50 +00:00
|
|
|
<target name="tools"
|
|
|
|
depends="core"
|
|
|
|
unless="before.java14"
|
|
|
|
description="build tools">
|
|
|
|
<javac srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off">
|
2007-04-20 21:02:49 +00:00
|
|
|
<exclude name="com/ibm/icu/dev/tool/cldr/*" />
|
2007-08-20 22:17:50 +00:00
|
|
|
<exclude name="com/ibm/icu/dev/tool/localeconverter/*" if="before.java15" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<include name="com/ibm/icu/dev/tool/**/*.java" />
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="build_indexgenerator" depends="initBase">
|
2007-08-20 22:17:50 +00:00
|
|
|
<javac srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off">
|
2007-04-20 21:02:49 +00:00
|
|
|
<include name="com/ibm/icu/dev/tool/index/IndexGenerator.java" />
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
2007-08-20 22:17:50 +00:00
|
|
|
<target name="docs" depends="init,docs13,docs14plus" description="build user javadoc" />
|
|
|
|
|
|
|
|
<target name="docs13" if="before.java14">
|
|
|
|
<mkdir dir="${doc.dir}" />
|
|
|
|
<javadoc packagenames="com.ibm.icu.lang,com.ibm.icu.text,com.ibm.icu.util,com.ibm.icu.math"
|
|
|
|
sourcepath="${src.dir}"
|
|
|
|
destdir="${doc.dir}"
|
|
|
|
nodeprecatedlist="true"
|
|
|
|
windowtitle="icu4j"
|
|
|
|
doctitle="icu4j"
|
|
|
|
encoding="iso-8859-1"
|
|
|
|
docencoding="iso-8859-1"
|
|
|
|
bottom="<font size=-1>Copyright (c) ${current.year} IBM Corporation and others.</font>"
|
|
|
|
link="http://java.sun.com/j2se/1.3/docs/api"
|
|
|
|
source="1.4" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="docs14plus" depends="tools" unless="before.java14">
|
2007-04-20 21:02:49 +00:00
|
|
|
<echo message="doc params: ${doc.params}" />
|
|
|
|
<mkdir dir="${doc.dir}" />
|
2007-08-20 22:17:50 +00:00
|
|
|
<javadoc packagenames="com.ibm.icu.lang,com.ibm.icu.text,com.ibm.icu.util,com.ibm.icu.charset,com.ibm.icu.math,com.ibm.icu.dev"
|
|
|
|
sourcepath="${src.dir}"
|
|
|
|
destdir="${doc.dir}"
|
|
|
|
nodeprecatedlist="true"
|
|
|
|
windowtitle="icu4j"
|
|
|
|
doctitle="icu4j"
|
|
|
|
encoding="iso-8859-1"
|
|
|
|
docencoding="iso-8859-1"
|
|
|
|
bottom="<font size=-1>Copyright (c) ${current.year} IBM Corporation and others.</font>"
|
|
|
|
additionalparam="${doc.params}"
|
|
|
|
link="http://java.sun.com/j2se/1.5/docs/api"
|
|
|
|
source="1.4" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="fulldocs" depends="tools" unless="before.java14" description="build all javadoc">
|
2007-04-20 21:02:49 +00:00
|
|
|
<echo message="doc params: ${doc.params}" />
|
|
|
|
<mkdir dir="${doc.dir}" />
|
2007-08-20 22:17:50 +00:00
|
|
|
<javadoc packagenames="com.ibm.icu.*"
|
|
|
|
sourcepath="${src.dir}"
|
|
|
|
destdir="${doc.dir}"
|
|
|
|
nodeprecatedlist="true"
|
|
|
|
windowtitle="icu4j"
|
|
|
|
doctitle="icu4j"
|
|
|
|
encoding="iso-8859-1"
|
|
|
|
docencoding="iso-8859-1"
|
|
|
|
bottom="<font size=-1>Copyright (c) ${current.year} IBM Corporation and others.</font>"
|
|
|
|
additionalparam="${doc.params}"
|
|
|
|
link="http://java.sun.com/j2se/1.5/docs/api"
|
|
|
|
source="1.4" />
|
2007-04-20 21:02:49 +00:00
|
|
|
</target>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="coreData" depends="initBase">
|
2007-04-20 21:02:49 +00:00
|
|
|
<copy todir="${build.dir}/com/ibm/icu/impl/data">
|
2007-08-20 22:17:50 +00:00
|
|
|
<fileset dir="${src.dir}/com/ibm/icu/impl/data" includes="*.icu,*.spp,*.brk" excludes="Transliterator_Han_Latin_*.txt" />
|
2007-04-20 21:02:49 +00:00
|
|
|
</copy>
|
2008-03-11 07:18:16 +00:00
|
|
|
<copy file="${src.dir}/com/ibm/icu/ICUConfig.properties" todir="${build.dir}/com/ibm/icu"/>
|
2007-04-20 21:02:49 +00:00
|
|
|
</target>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="testdata" depends="initBase">
|
2007-04-20 21:02:49 +00:00
|
|
|
<copy file="${src.dir}/com/ibm/icu/dev/data/rbbi/english.dict" todir="${build.dir}/com/ibm/icu/dev/data/rbbi" />
|
|
|
|
<copy file="${src.dir}/com/ibm/icu/dev/test/rbbi/rbbitst.txt" todir="${build.dir}/com/ibm/icu/dev/test/rbbi" />
|
|
|
|
<copy file="${src.dir}/com/ibm/icu/dev/test/charsetdet/CharsetDetectionTests.xml" todir="${build.dir}/com/ibm/icu/dev/test/charsetdet" />
|
|
|
|
<copy todir="${build.dir}/com/ibm/icu/dev/test/serializable/data">
|
|
|
|
<fileset dir="${src.dir}/com/ibm/icu/dev/test/serializable/data">
|
|
|
|
<include name="**/*.dat" />
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
<copy file="${src.dir}/com/ibm/icu/dev/data/riwords.txt" todir="${build.dir}/com/ibm/icu/dev/data" />
|
|
|
|
<copy file="${src.dir}/com/ibm/icu/dev/data/IDNATestInput.txt" todir="${build.dir}/com/ibm/icu/dev/data" />
|
2007-08-20 22:17:50 +00:00
|
|
|
<javac srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off">
|
2007-04-20 21:02:49 +00:00
|
|
|
<include name="com/ibm/icu/dev/data/*.java" />
|
|
|
|
<include name="com/ibm/icu/dev/data/resources/*.java" />
|
|
|
|
</javac>
|
|
|
|
<copy todir="${build.dir}/com/ibm/icu/dev/data">
|
|
|
|
<fileset dir="${src.dir}/com/ibm/icu/dev/data" includes="*.spp,*.txt" />
|
|
|
|
</copy>
|
|
|
|
<copy todir="${build.dir}/com/ibm/icu/dev/data/unicode/">
|
|
|
|
<fileset dir="${src.dir}/com/ibm/icu/dev/data/unicode/" includes="*.txt" />
|
|
|
|
</copy>
|
|
|
|
<copy file="${src.dir}/com/ibm/icu/dev/test/format/NumberFormatTestCases.txt" todir="${build.dir}/com/ibm/icu/dev/test/format" />
|
|
|
|
<copy todir="${build.dir}/com/ibm/icu/dev/data/resources/">
|
|
|
|
<fileset dir="${src.dir}/com/ibm/icu/dev/data/resources/" includes="*.properties" />
|
|
|
|
</copy>
|
2007-08-06 23:22:53 +00:00
|
|
|
<copy todir="${build.dir}/com/ibm/icu/dev/test/duration/testdata">
|
|
|
|
<fileset dir="${src.dir}/com/ibm/icu/dev/test/duration/testdata/" includes="testdata*.txt" />
|
|
|
|
</copy>
|
2007-04-20 21:02:49 +00:00
|
|
|
<!-- use this target to force resources to be rebuilt -->
|
|
|
|
<unjar src="${src.dir}/com/ibm/icu/dev/data/testdata.jar" dest="${build.dir}" />
|
|
|
|
<touch file="${build.dir}/${icu4j.testdata.path}/root.res" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- builds richedit and richedit tests -->
|
|
|
|
<target name="richedit" depends="init" description="build richedit classes and tests">
|
2007-08-20 22:17:50 +00:00
|
|
|
<javac srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off">
|
2007-04-20 21:02:49 +00:00
|
|
|
<include name="com/ibm/richtext/**/*.java" />
|
|
|
|
</javac>
|
|
|
|
<copy todir="${build.dir}/com/ibm/richtext/textapps/resources" overwrite="yes" includeEmptyDirs="no">
|
|
|
|
<fileset dir="${src.dir}/com/ibm/richtext/textapps/resources" includes="*.red" />
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- Creates the 3 release jar archives for distribution -->
|
|
|
|
<target name="jarRelease" depends="jar,jarSrc,jarDocs" />
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="jar"
|
|
|
|
depends="core,indices,charsetsJar"
|
|
|
|
description="build 'icu4j.jar' jar file">
|
2007-04-20 21:02:49 +00:00
|
|
|
<jar jarfile="${jar.file}" compress="true">
|
2008-03-11 07:18:16 +00:00
|
|
|
<fileset dir="${basedir}" includes="license.html,unicode-license.txt" />
|
|
|
|
<fileset dir="${src.dir}" includes="com/ibm/icu/ICUConfig.properties" />
|
2007-07-23 14:07:05 +00:00
|
|
|
<fileset dir="${build.dir}" includes="com/ibm/icu/util/**/*,com/ibm/icu/text/**/*,com/ibm/icu/math/**/*,com/ibm/icu/impl/**/*,com/ibm/icu/lang/**/*" excludes="META-INF/services/**/*,com/ibm/icu/charset/**/*,${icu4j.data.path}/*.cnv,${icu4j.data.path}/cnvalias.icu" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<manifest>
|
|
|
|
<attribute name="Built-By" value="${corp}" />
|
|
|
|
<section name="common">
|
2007-08-22 08:28:38 +00:00
|
|
|
<attribute name="Specification-Title" value="${manifest.specification.title}" />
|
|
|
|
<attribute name="Specification-Version" value="${icu4j.spec.version.string}" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<attribute name="Specification-Vendor" value="ICU" />
|
|
|
|
<attribute name="Implementation-Title" value=" ICU for Java" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<attribute name="Implementation-Version" value="${icu4j.impl.version.string}" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<attribute name="Implementation-Vendor" value="${corp}" />
|
|
|
|
<attribute name="Implementation-Vendor-Id" value="com.ibm" />
|
|
|
|
<attribute name="Copyright-Info" value="${copyright}" />
|
|
|
|
<attribute name="Sealed" value="false" />
|
|
|
|
</section>
|
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="charsetsJar"
|
|
|
|
depends="core,indices"
|
|
|
|
unless="before.java14"
|
|
|
|
description="build 'icu4j-charstes.jar' jar file">
|
2007-07-23 14:07:05 +00:00
|
|
|
<echo message="${icu4j.data.path}/cnvalias.icu"/>
|
2007-04-20 21:02:49 +00:00
|
|
|
<jar jarfile="${charsets.jar.file}" compress="true">
|
|
|
|
<fileset dir="${basedir}" includes="license.html, unicode-license.txt" />
|
2007-07-23 14:07:05 +00:00
|
|
|
<fileset dir="${build.dir}"
|
|
|
|
includes="META-INF/services/**/*,com/ibm/icu/charset/**/*,${icu4j.data.path}/*.cnv,${icu4j.data.path}/cnvalias.icu" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<manifest>
|
|
|
|
<attribute name="Built-By" value="${corp}" />
|
|
|
|
<section name="common">
|
|
|
|
<attribute name="Specification-Title" value="ICU4J Charsets" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<attribute name="Specification-Version" value="${icu4j.spec.version.string}" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<attribute name="Specification-Vendor" value="ICU" />
|
|
|
|
<attribute name="Implementation-Title" value=" ICU for Java Charsets" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<attribute name="Implementation-Version" value="${icu4j.impl.version.string}" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<attribute name="Implementation-Vendor" value="${corp}" />
|
|
|
|
<attribute name="Implementation-Vendor-Id" value="com.ibm" />
|
|
|
|
<attribute name="Copyright-Info" value="${copyright}" />
|
|
|
|
<attribute name="Sealed" value="false" />
|
|
|
|
</section>
|
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="jarTests" depends="tests,jar" description="build runtime 'icu4jtests.jar' jar file">
|
|
|
|
<jar jarfile="${testjar.file}" compress="true">
|
|
|
|
<fileset dir="${build.dir}" includes="com/ibm/icu/dev/test/**/*" />
|
|
|
|
<fileset dir="${build.dir}" includes="com/ibm/icu/dev/data/**/*" />
|
|
|
|
<manifest>
|
|
|
|
<attribute name="Built-By" value="${corp}" />
|
|
|
|
<section name="common">
|
|
|
|
<attribute name="Specification-Title" value="ICU4J Tests" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<attribute name="Specification-Version" value="${icu4j.spec.version.string}" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<attribute name="Specification-Vendor" value="ICU" />
|
|
|
|
<attribute name="Implementation-Title" value=" ICU for Java Tests" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<attribute name="Implementation-Version" value="${icu4j.impl.version.string}" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<attribute name="Implementation-Vendor" value="${corp}" />
|
|
|
|
<attribute name="Implementation-Vendor-Id" value="com.ibm" />
|
|
|
|
<attribute name="Copyright-Info" value="${copyright}" />
|
|
|
|
<attribute name="Sealed" value="false" />
|
|
|
|
</section>
|
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="jarSrc" depends="init,normSrc" description="build source 'icu4jsrc.jar' jar file">
|
2007-04-20 21:02:49 +00:00
|
|
|
<!--Create a jar archive of just the source for distribution. The
|
2004-01-30 19:17:51 +00:00
|
|
|
jar file will be created in the directory above the root ICU4J
|
2003-09-17 20:36:51 +00:00
|
|
|
directory. The exclude pattern ${src.dir}/com/ibm/icu/dev/data/unicode/UnicodeData-*.txt
|
|
|
|
and ${src.dir}/com/ibm/icu/dev/data/unicode/SpecialCasing-*.txt
|
|
|
|
eliminates old archive copies like SpecialCasing-2.txt and
|
|
|
|
UnicodeData-2.1.8.txt -->
|
2007-08-20 22:17:50 +00:00
|
|
|
<jar jarfile="${jarSrc.file}"
|
|
|
|
compress="true">
|
|
|
|
<fileset dir=".">
|
|
|
|
<exclude name="${richedit.dir}/**/*" />
|
|
|
|
<exclude name="test_*" />
|
|
|
|
<exclude name="${src.dir}/com/ibm/icu/dev/data/unicode/UnicodeData-*.txt" />
|
|
|
|
<exclude name="${src.dir}/com/ibm/icu/dev/data/unicode/SpecialCasing-*.txt" />
|
|
|
|
<exclude name="${src.dir}/com/ibm/icu/dev/data/unicode/CompositionExclusions-*.txt" />
|
|
|
|
<exclude name="${obsolete.dir}/**" />
|
|
|
|
<exclude name="**/*~" />
|
|
|
|
<exclude name="${src.dir}/**/*.class" />
|
|
|
|
<exclude name="${build.dir}/**" />
|
|
|
|
<exclude name="${doc.dir}/**" />
|
|
|
|
<exclude name="*.jar" />
|
|
|
|
<exclude name="*.zip" />
|
|
|
|
<exclude name="*.gz" />
|
|
|
|
</fileset>
|
2007-04-20 21:02:49 +00:00
|
|
|
<manifest>
|
|
|
|
<attribute name="Built-By" value="${corp}" />
|
|
|
|
<section name="common">
|
2007-08-22 08:28:38 +00:00
|
|
|
<attribute name="Specification-Title" value="ICU4J Sources" />
|
|
|
|
<attribute name="Specification-Version" value="${icu4j.spec.version.string}" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<attribute name="Specification-Vendor" value="ICU" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<attribute name="Implementation-Title" value=" ICU for Java source files" />
|
|
|
|
<attribute name="Implementation-Version" value="${icu4j.impl.version.string}" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<attribute name="Implementation-Vendor" value="${corp}" />
|
|
|
|
<attribute name="Implementation-Vendor-Id" value="com.ibm" />
|
|
|
|
<attribute name="Copyright-Info" value="${copyright}" />
|
|
|
|
<attribute name="Sealed" value="false" />
|
|
|
|
</section>
|
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="jarDocs" depends="docs" description="build documentation 'icu4jdocs.jar' jar file">
|
|
|
|
<jar jarfile="${jarDocs.file}" compress="true" basedir="${doc.dir}">
|
|
|
|
<manifest>
|
|
|
|
<attribute name="Built-By" value="${corp}" />
|
|
|
|
<section name="common">
|
2007-08-22 08:28:38 +00:00
|
|
|
<attribute name="Specification-Title" value="ICU4J Documents" />
|
|
|
|
<attribute name="Specification-Version" value="${icu4j.spec.version.string}" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<attribute name="Specification-Vendor" value="ICU" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<attribute name="Implementation-Title" value=" ICU for Java documents" />
|
|
|
|
<attribute name="Implementation-Version" value="${icu4j.impl.version.string}" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<attribute name="Implementation-Vendor" value="${corp}" />
|
|
|
|
<attribute name="Implementation-Vendor-Id" value="com.ibm" />
|
|
|
|
<attribute name="Copyright-Info" value="${copyright}" />
|
|
|
|
<attribute name="Sealed" value="false" />
|
2007-09-14 06:22:51 +00:00
|
|
|
</section>
|
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="jarDemos" depends="demos" description="build demos to 'icu4jdemos.jar' jar file">
|
|
|
|
<jar jarfile="${demos-jar.file}" compress="true">
|
|
|
|
<fileset dir="${build.dir}" includes="com/ibm/icu/dev/demo/**" />
|
|
|
|
<manifest>
|
|
|
|
<attribute name="Built-By" value="${corp}" />
|
2007-09-14 07:06:30 +00:00
|
|
|
<attribute name="Main-Class" value="com.ibm.icu.dev.demo.Launcher" />
|
|
|
|
<attribute name="Class-Path" value="icu4j.jar" />
|
2007-09-14 06:22:51 +00:00
|
|
|
<section name="common">
|
|
|
|
<attribute name="Specification-Title" value="${manifest.specification.title}" />
|
|
|
|
<attribute name="Specification-Version" value="${icu4j.spec.version.string}" />
|
|
|
|
<attribute name="Specification-Vendor" value="ICU" />
|
|
|
|
<attribute name="Implementation-Title" value=" ICU for Java Demos" />
|
|
|
|
<attribute name="Implementation-Version" value="${icu4j.impl.version.string}" />
|
|
|
|
<attribute name="Implementation-Vendor" value="${corp}" />
|
|
|
|
<attribute name="Implementation-Vendor-Id" value="com.ibm" />
|
|
|
|
<attribute name="Copyright-Info" value="${copyright}" />
|
|
|
|
<attribute name="Sealed" value="false" />
|
2007-04-20 21:02:49 +00:00
|
|
|
</section>
|
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="translitIMEJar" depends="collator, transliterator" description="build transliterator IME 'icutransime.jar' jar file">
|
|
|
|
<javac includes="com/ibm/icu/dev/tool/ime/translit/*.java" excludes="**/CVS/**/*" srcdir="${src.dir}" destdir="${build.dir}" classpathref="build.classpath" source="${icu4j.javac.source}" target="${icu4j.javac.target}" debug="on" deprecation="off" />
|
|
|
|
<copy file="${src.dir}/com/ibm/icu/dev/tool/ime/translit/Transliterator.properties" todir="${build.dir}/com/ibm/icu/dev/tool/ime/translit" />
|
|
|
|
<jar jarfile="${ime.translit.jar.file}" compress="true" basedir="${build.dir}" includes="com/ibm/icu/dev/tool/ime/translit/**/*" manifest="${ime.translit.manifest}">
|
|
|
|
<metainf dir="${src.dir}/com/ibm/icu/dev/tool/ime/translit" includes="services/*" />
|
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="indicIMEJar" depends="init" description="build indic IME 'icuindicime.jar' jar file">
|
|
|
|
<javac includes="com/ibm/icu/dev/tool/ime/indic/*.java" excludes="**/CVS/**/*" srcdir="${src.dir}" destdir="${build.dir}" classpathref="build.classpath" source="${icu4j.javac.source}" target="${icu4j.javac.target}" debug="on" deprecation="off" />
|
|
|
|
<copy file="${src.dir}/com/ibm/icu/dev/tool/ime/indic/DisplayNames.properties" todir="${build.dir}/com/ibm/icu/dev/tool/ime/indic" />
|
|
|
|
<jar jarfile="${ime.indic.jar.file}" compress="true" basedir="${build.dir}" includes="com/ibm/icu/dev/tool/ime/indic/**/*" manifest="${ime.indic.manifest}">
|
|
|
|
<metainf dir="${src.dir}/com/ibm/icu/dev/tool/ime/indic" includes="services/*" />
|
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!--
|
2004-04-30 16:50:33 +00:00
|
|
|
<target name="translitimeStandaloneJar" depends="collator, transliterator">
|
|
|
|
<javac includes="com/ibm/icu/dev/tool/ime/translit/*.java"
|
2004-04-20 14:44:09 +00:00
|
|
|
excludes="**/CVS/**/*"
|
|
|
|
srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
classpathref="build.classpath"
|
2005-05-26 17:11:28 +00:00
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
2004-04-20 14:44:09 +00:00
|
|
|
debug="on" deprecation="off"/>
|
2004-06-07 15:16:34 +00:00
|
|
|
<copy toDir="${build.dir}/com/ibm/icu/dev/tool/ime/translit">
|
2004-06-09 03:58:42 +00:00
|
|
|
<fileset dir="${src.dir}/com/ibm/icu/dev/tool/ime/translit" includes="*.properties"/>
|
2004-06-07 15:16:34 +00:00
|
|
|
</copy>
|
2004-04-20 14:44:09 +00:00
|
|
|
<jar jarfile="${ime.jar.file}"
|
|
|
|
compress="true"
|
2004-06-07 15:16:34 +00:00
|
|
|
basedir="${build.dir}"
|
2004-04-30 16:50:33 +00:00
|
|
|
includes="com/ibm/icu/util/**/*,com/ibm/icu/text/**/*,com/ibm/icu/math/**/*,com/ibm/icu/impl/**/*,com/ibm/icu/lang/**/*,com/ibm/icu/dev/tool/ime/translit/**/*"
|
|
|
|
manifest="${ime.translit.manifest}">
|
2004-06-07 15:16:34 +00:00
|
|
|
<metainf dir="${src.dir}/com/ibm/icu/dev/tool/ime/translit" includes="services/*"/>
|
|
|
|
</jar>
|
2004-04-20 14:44:09 +00:00
|
|
|
</target>
|
2004-04-30 16:50:33 +00:00
|
|
|
-->
|
2004-04-20 14:44:09 +00:00
|
|
|
|
2007-04-20 21:02:49 +00:00
|
|
|
<!-- jars up richedit but without tests -->
|
|
|
|
<target name="richeditJar" depends="richedit" description="build richedit runtime 'richedit.jar' jar file">
|
|
|
|
<mkdir dir="${richedit.dir}" />
|
|
|
|
<jar jarfile="${richedit.jar.file}" compress="true" includes="com/ibm/richtext/**/*" excludes="com/ibm/richtext/test/**/*" basedir="${build.dir}" manifest="${richedit.manifest}" />
|
|
|
|
</target>
|
2000-04-21 00:19:24 +00:00
|
|
|
|
2007-04-20 21:02:49 +00:00
|
|
|
<!--
|
2000-04-24 17:14:39 +00:00
|
|
|
Note: I used to use -linkoffline http://java.sun.com/products/jdk/1.2/docs/api/ C:\jdk1.2.2\docs\api
|
|
|
|
This links to core docs on Sun's site - a very nice feature. But it requires the 1.2 docs to be
|
|
|
|
on the build machine at a known location.
|
|
|
|
-->
|
2001-11-28 18:04:53 +00:00
|
|
|
|
2007-04-20 21:02:49 +00:00
|
|
|
<!-- the 'public' docs for richedit -->
|
|
|
|
<target name="richeditDocs" depends="init" description="build richedit javadoc">
|
|
|
|
<mkdir dir="${richedit.doc.dir}" />
|
2007-08-20 22:17:50 +00:00
|
|
|
<javadoc packagenames="com.ibm.richtext.demo,com.ibm.richtext.awtui,com.ibm.richtext.swingui,com.ibm.richtext.textpanel,com.ibm.richtext.styledtext,com.ibm.richtext.textlayout.attributes,com.ibm.richtext.print"
|
|
|
|
sourcepath="${src.dir}"
|
|
|
|
destdir="${richedit.doc.dir}"
|
|
|
|
nodeprecatedlist="true"
|
|
|
|
windowtitle="RichEdit Control"
|
|
|
|
doctitle="RichEdit Control"
|
|
|
|
encoding="iso-8859-1"
|
|
|
|
docencoding="iso-8859-1"
|
|
|
|
bottom="<font size=-1>Copyright (c) 1998-2004 IBM Corporation and others.</font>" />
|
2007-04-20 21:02:49 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- richedit alphaworks distribution - jar and docs, but no source -->
|
|
|
|
<target name="richeditZip" depends="richeditJar,richeditDocs" description="build richedit zip file">
|
|
|
|
<!--Create a zip archive of the richedit jar and readme -->
|
|
|
|
<copy file="license.html" todir="${richedit.dir}" />
|
|
|
|
<zip zipfile="${richedit.zip.file}" basedir="${richedit.dir}" includes="doc/**/*,richedit.jar,license.html" />
|
|
|
|
</target>
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="deleteCore" depends="initBase">
|
2007-04-20 21:02:49 +00:00
|
|
|
<delete failonerror="no">
|
|
|
|
<fileset dir="${build.dir}/com/ibm/icu/text" />
|
|
|
|
<fileset dir="${build.dir}/com/ibm/icu/impl" />
|
|
|
|
<fileset dir="${build.dir}/com/ibm/icu/math" />
|
|
|
|
<fileset dir="${build.dir}/com/ibm/icu/lang" />
|
|
|
|
<fileset dir="${build.dir}/com/ibm/icu/util" />
|
|
|
|
<fileset dir="${build.dir}/com/ibm/icu/charset" />
|
|
|
|
</delete>
|
|
|
|
</target>
|
2008-03-11 07:18:16 +00:00
|
|
|
|
2007-04-20 21:02:49 +00:00
|
|
|
<target name="check" depends="tests, jar, deleteCore" description="run standard icu4j test suite">
|
|
|
|
<java classname="com.ibm.icu.dev.test.TestAll" fork="yes" failonerror="true">
|
2007-08-22 21:55:39 +00:00
|
|
|
<jvmarg line="${test.jvm.args}"/>
|
2007-04-20 21:02:49 +00:00
|
|
|
<arg value="-n" />
|
|
|
|
<classpath>
|
|
|
|
<pathelement path="${java.class.path}/" />
|
|
|
|
<pathelement location="${jar.file}" />
|
|
|
|
<pathelement location="${charsets.jar.file}" />
|
|
|
|
<pathelement location="clover.jar" />
|
|
|
|
<pathelement path="${build.dir}" />
|
|
|
|
</classpath>
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
2008-03-11 07:18:16 +00:00
|
|
|
<target name="jdktzCheck" depends="tests, jar, deleteCore" description="run icu4j test suite with JDK timezone">
|
|
|
|
<java classname="com.ibm.icu.dev.test.TestAll" fork="yes" failonerror="true">
|
|
|
|
<jvmarg line="${test.jvm.args} -Dcom.ibm.icu.util.TimeZone.DefaultTimeZoneType=JDK"/>
|
|
|
|
<arg value="-n" />
|
|
|
|
<classpath>
|
|
|
|
<pathelement path="${java.class.path}/" />
|
|
|
|
<pathelement location="${jar.file}" />
|
|
|
|
<pathelement location="${charsets.jar.file}" />
|
|
|
|
<pathelement location="clover.jar" />
|
|
|
|
<pathelement path="${build.dir}" />
|
|
|
|
</classpath>
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
2007-04-20 21:02:49 +00:00
|
|
|
<target name="exhaustiveCheck" depends="tests, jar, deleteCore" description="run standard icu4j test suite in exhaustive mode">
|
|
|
|
<java classname="com.ibm.icu.dev.test.TestAll" fork="yes" failonerror="true">
|
2007-08-22 21:55:39 +00:00
|
|
|
<jvmarg line="${test.jvm.args}"/>
|
2007-04-20 21:02:49 +00:00
|
|
|
<arg value="-n" />
|
|
|
|
<arg value="-e10" />
|
|
|
|
<classpath>
|
|
|
|
<pathelement path="${java.class.path}/" />
|
|
|
|
<pathelement location="${jar.file}" />
|
|
|
|
<pathelement location="${charsets.jar.file}" />
|
|
|
|
<pathelement location="clover.jar" />
|
|
|
|
<pathelement path="${build.dir}" />
|
|
|
|
</classpath>
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="secure" depends="jarTests" description="builds icu4j.jar and icu4jtests.jar" />
|
|
|
|
|
|
|
|
<target name="secureCheck" depends="secure" description="run secure (applet-like) icu4j test suite">
|
|
|
|
<java classname="com.ibm.icu.dev.test.TestAll" fork="yes" failonerror="true">
|
2007-09-10 18:27:48 +00:00
|
|
|
<jvmarg line="${test.jvm.args}"/>
|
2007-04-20 21:02:49 +00:00
|
|
|
<!-- jvmarg value="-verbose"/ -->
|
|
|
|
<!-- (use for debugging, LOTS of output) <jvmarg value="-Djava.security.debug=access:trace"/ -->
|
|
|
|
<!-- <jvmarg value="-Djava.security.debug=access:failure,domain"/> -->
|
|
|
|
<jvmarg value="-Djava.security.manager" />
|
|
|
|
<jvmarg value="-Djava.security.policy=${src.dir}/com/ibm/icu/dev/test/security.policy" />
|
|
|
|
<!--<jvmarg value="-Djava.security.debug=access:failure"/>-->
|
|
|
|
<arg value="-w" />
|
|
|
|
<arg value="-nothrow" />
|
|
|
|
<classpath>
|
|
|
|
<pathelement location="clover.jar" />
|
|
|
|
<pathelement location="${jar.file}" />
|
|
|
|
<pathelement location="${charsets.jar.file}" />
|
|
|
|
<pathelement location="${testjar.file}" />
|
|
|
|
</classpath>
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="noData" depends="core, tests" description="builds ICU4J without any data">
|
|
|
|
<delete failonerror="no">
|
|
|
|
<fileset dir="${build.dir}/${icu4j.data.path}/../" includes="Holiday*.class" />
|
|
|
|
<fileset dir="${build.dir}/${icu4j.data.path}/../" includes="BreakIterator*.class" />
|
|
|
|
<fileset dir="${build.dir}/${icu4j.data.path}" />
|
|
|
|
<fileset dir="${build.dir}/${icu4j.testdata.path}" />
|
2007-07-23 14:07:05 +00:00
|
|
|
<fileset dir="${build.dir}/${icu4j.testdata.path}/../" />
|
2007-04-20 21:02:49 +00:00
|
|
|
</delete>
|
|
|
|
</target>
|
|
|
|
<target name="noDataCheck" depends="noData" description="runs the tests when no data is present">
|
|
|
|
<java classname="com.ibm.icu.dev.test.TestAll" fork="yes" failonerror="true">
|
|
|
|
<arg value="-nothrow" />
|
|
|
|
<arg value="-nodata" />
|
|
|
|
<classpath>
|
|
|
|
<pathelement location="clover.jar" />
|
|
|
|
<pathelement location="${build.dir}" />
|
|
|
|
</classpath>
|
|
|
|
</java>
|
|
|
|
</target>
|
2007-08-20 22:17:50 +00:00
|
|
|
|
|
|
|
<target name="_requires14" if="before.java14">
|
|
|
|
<echo message="One of your targets requires JAVA_HOME to be set to JDK version 1.4 or newer" />
|
2007-04-20 21:02:49 +00:00
|
|
|
</target>
|
|
|
|
|
2007-08-20 22:17:50 +00:00
|
|
|
<target name="_checktags" depends="tools" unless="before.java14">
|
2007-04-20 21:02:49 +00:00
|
|
|
<echo message="doc params: ${doc.params}" />
|
|
|
|
<javadoc sourcepath="${src.dir}" packagenames="com.ibm.icu.*" excludepackagenames="com.ibm.icu.dev.*,com.ibm.icu.impl.*" classpath="${build.dir}" source="1.4">
|
|
|
|
<doclet name="com.ibm.icu.dev.tool.docs.CheckTags" path="${build.dir}">
|
|
|
|
<!-- <param name="-short"/> -->
|
|
|
|
</doclet>
|
|
|
|
</javadoc>
|
|
|
|
</target>
|
|
|
|
|
2007-08-20 22:17:50 +00:00
|
|
|
<target name="checktags" depends="_requires14,_checktags" description="check API tags before release" />
|
2007-04-20 21:02:49 +00:00
|
|
|
|
2007-08-20 22:17:50 +00:00
|
|
|
<target name="gatherapi" depends="tools" unless="before.java14" description="run API database generator tool">
|
2007-04-20 21:02:49 +00:00
|
|
|
<javadoc classpath="${build.dir}" sourcepath="${src.dir}" packagenames="com.ibm.icu.lang,com.ibm.icu.math,com.ibm.icu.text,com.ibm.icu.util" source="1.4">
|
|
|
|
<doclet name="com.ibm.icu.dev.tool.docs.GatherAPIData" path="${build.dir}">
|
2007-12-11 21:24:55 +00:00
|
|
|
<param name="-name" value="ICU4J ${icu4j.impl.version.string}" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<param name="-output" value="${api.dir}/icu4j${icu4j.version.number}.api" />
|
|
|
|
<param name="-internal" />
|
|
|
|
<param name="-gzip" />
|
|
|
|
</doclet>
|
|
|
|
</javadoc>
|
|
|
|
</target>
|
|
|
|
|
2007-08-20 22:17:50 +00:00
|
|
|
<target name="gatherapi.with.version" depends="tools" unless="before.java14" description="run API database generator tool">
|
2007-07-26 23:28:59 +00:00
|
|
|
<javadoc classpath="${build.dir}" sourcepath="${src.dir}" packagenames="com.ibm.icu.lang,com.ibm.icu.math,com.ibm.icu.text,com.ibm.icu.util" source="1.4">
|
|
|
|
<doclet name="com.ibm.icu.dev.tool.docs.GatherAPIData" path="${build.dir}">
|
2007-12-11 21:24:55 +00:00
|
|
|
<param name="-name" value="ICU4J ${icu4j.impl.version.string}" />
|
2007-07-26 23:28:59 +00:00
|
|
|
<param name="-output" value="${api.dir}/icu4j${icu4j.version.number}.stver.api" />
|
|
|
|
<param name="-internal" />
|
|
|
|
<param name="-version" />
|
|
|
|
</doclet>
|
|
|
|
</javadoc>
|
|
|
|
</target>
|
|
|
|
|
2007-08-20 22:17:50 +00:00
|
|
|
<target name="apireport" depends="tools, gatherapi" unless="beofre.java14" description="run API report generator tool">
|
2007-04-20 21:02:49 +00:00
|
|
|
<java classname="com.ibm.icu.dev.tool.docs.ReportAPI" classpath="${build.dir}" failonerror="true">
|
|
|
|
<arg value="-old:" />
|
|
|
|
<arg value="${api.dir}/icu4j${icu4j.previous.version.number}.api.gz" />
|
|
|
|
<arg value="-new:" />
|
|
|
|
<arg value="${api.dir}/icu4j${icu4j.version.number}.api.gz" />
|
|
|
|
<arg value="-html" />
|
|
|
|
<arg value="-internal" />
|
|
|
|
<arg value="-out:" />
|
|
|
|
<arg value="${api.report.out}" />
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="clean" depends="initBase" description="remove all build targets">
|
2007-04-20 21:02:49 +00:00
|
|
|
<delete dir="${build.dir}" />
|
|
|
|
<delete dir="${doc.dir}" />
|
|
|
|
<delete file="${jar.file}" />
|
|
|
|
<delete file="${charsets.jar.file}" />
|
|
|
|
<delete dir="${richedit.dir}" />
|
|
|
|
<delete file="${testjar.file}" />
|
|
|
|
<delete file="${jarSrc.file}" />
|
|
|
|
|
|
|
|
<delete dir="${eclipse.projects.dir}" />
|
|
|
|
<delete dir="${wrapper.build.dir}" />
|
|
|
|
<delete file="${zipTestSrc.file}" />
|
|
|
|
<delete file="${jdk.wrapper.jar.file}" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<delete file="${fragment.jar.file}"/>
|
2007-04-20 21:02:49 +00:00
|
|
|
|
|
|
|
<delete dir="${tzu.bin.dir}" />
|
|
|
|
<delete file="${tzu.bin.zip.file}" />
|
|
|
|
<delete file="${tzu.src.zip.file}" />
|
|
|
|
</target>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="moduleJar" depends="initBase" description="modular build of 'icu4j.jar' jar file">
|
2007-08-01 20:59:19 +00:00
|
|
|
<jar jarfile="${jar.file}" compress="true" includes="com/ibm/icu/util/**/*,com/ibm/icu/text/**/*,com/ibm/icu/math/**/*,com/ibm/icu/impl/**/*,com/ibm/icu/lang/**/*" basedir="${build.dir}">
|
|
|
|
<manifest>
|
|
|
|
<attribute name="Built-By" value="${corp}" />
|
|
|
|
<section name="common">
|
|
|
|
<attribute name="Specification-Title" value="ICU4J Modularized Build" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<attribute name="Specification-Version" value="${icu4j.spec.version.string}" />
|
2007-08-01 20:59:19 +00:00
|
|
|
<attribute name="Specification-Vendor" value="ICU" />
|
|
|
|
<attribute name="Implementation-Title" value=" ICU for Java Module" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<attribute name="Implementation-Version" value="${icu4j.impl.version.string}" />
|
2007-08-01 20:59:19 +00:00
|
|
|
<attribute name="Implementation-Vendor" value="${corp}" />
|
|
|
|
<attribute name="Implementation-Vendor-Id" value="com.ibm" />
|
|
|
|
<attribute name="Copyright-Info" value="${copyright}" />
|
|
|
|
<attribute name="Sealed" value="false" />
|
|
|
|
</section>
|
|
|
|
</manifest>
|
|
|
|
</jar>
|
2007-04-20 21:02:49 +00:00
|
|
|
</target>
|
|
|
|
|
2007-08-01 20:59:19 +00:00
|
|
|
<patternset id="common.test.sources">
|
|
|
|
<include name="com/ibm/icu/dev/test/TestFmwk.java" />
|
|
|
|
<include name="com/ibm/icu/dev/test/TestLog.java" />
|
|
|
|
<include name="com/ibm/icu/dev/test/TestUtil.java" />
|
|
|
|
<include name="com/ibm/icu/dev/test/UTF16Util.java" />
|
|
|
|
<include name="com/ibm/icu/dev/test/TestAll.java" />
|
|
|
|
</patternset>
|
|
|
|
|
|
|
|
<!-- Module: BreakIterator -->
|
|
|
|
<target name="breakIterator" depends="init,copyFullPropsData" description="modular build of break iterator services">
|
|
|
|
<javac srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off">
|
|
|
|
<include name="com/ibm/icu/impl/UCharacterName.java"/>
|
|
|
|
<include name="com/ibm/icu/impl/data/*Break*.java"/>
|
|
|
|
<include name="com/ibm/icu/lang/**/*.java"/>
|
|
|
|
<include name="com/ibm/icu/text/*BreakIterator*.java"/>
|
|
|
|
<include name="com/ibm/icu/text/UnicodeSetIterator.java"/>
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="breakIteratorTests" depends="breakIterator" description="test breakIterator modular build target">
|
|
|
|
<javac srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
debug="on" deprecation="off">
|
|
|
|
<patternset refid="common.test.sources" />
|
|
|
|
<include name="com/ibm/icu/dev/test/rbbi/**/*.java"/>
|
|
|
|
</javac>
|
|
|
|
<copy file="${src.dir}/com/ibm/icu/dev/test/rbbi/rbbitst.txt"
|
|
|
|
todir="${build.dir}/com/ibm/icu/dev/test/rbbi"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- Module: Calendar -->
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="copyCalendarData" depends="initBase">
|
2007-08-01 20:59:19 +00:00
|
|
|
<!-- Calendar does not require Collation data, BreakIterator data -->
|
2007-08-25 01:15:23 +00:00
|
|
|
<unjar src="${icudatajar.file}" dest="${build.dir}">
|
2007-04-20 21:02:49 +00:00
|
|
|
<patternset>
|
2007-08-01 20:59:19 +00:00
|
|
|
<include name="**/pnames.icu" />
|
|
|
|
<include name="**/ucase.icu" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<include name="**/unorm.icu" />
|
|
|
|
<include name="**/uprops.icu" />
|
|
|
|
<include name="**/unames.icu" />
|
|
|
|
<include name="**/*.res" />
|
|
|
|
<exclude name="**/coll/*.res" />
|
|
|
|
<exclude name="**/translit/*.res" />
|
|
|
|
<exclude name="**/rbnf/*.res" />
|
|
|
|
</patternset>
|
|
|
|
</unjar>
|
|
|
|
<touch file="${build.dir}/${icu4j.data.path}/uprops.icu" />
|
|
|
|
</target>
|
|
|
|
|
2007-08-01 20:59:19 +00:00
|
|
|
<target name="calendar" depends="init,copyCalendarData" description="modular build of calendar services">
|
|
|
|
<javac srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off">
|
|
|
|
<include name="com/ibm/icu/impl/data/*Holiday*.java"/>
|
|
|
|
<include name="com/ibm/icu/lang/UCharacter.java"/>
|
|
|
|
<include name="com/ibm/icu/text/UnicodeSetIterator.java"/>
|
|
|
|
<include name="com/ibm/icu/text/NumberFormatServiceShim.java"/>
|
|
|
|
<include name="com/ibm/icu/util/*Calendar*.java"/>
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
2007-08-31 04:45:13 +00:00
|
|
|
<target name="calendarTests" depends="calendar,testdata" description="test calendar modular build target">
|
2007-08-01 20:59:19 +00:00
|
|
|
<javac srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off">
|
|
|
|
<patternset refid="common.test.sources" />
|
|
|
|
<include name="com/ibm/icu/dev/test/calendar/**/*.java" />
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
2007-08-31 04:45:13 +00:00
|
|
|
<!-- Module: Collator -->
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="copyCollatorData" depends="initBase">
|
2007-08-25 01:15:23 +00:00
|
|
|
<unjar src="${icudatajar.file}" dest="${build.dir}">
|
2007-04-20 21:02:49 +00:00
|
|
|
<patternset>
|
2007-08-01 20:59:19 +00:00
|
|
|
<include name="**/*.icu" />
|
|
|
|
<include name="**/coll/*.res" />
|
|
|
|
<include name="**/*.brk" />
|
2007-04-20 21:02:49 +00:00
|
|
|
</patternset>
|
|
|
|
</unjar>
|
|
|
|
<touch file="${build.dir}/${icu4j.data.path}/uprops.icu" />
|
|
|
|
</target>
|
|
|
|
|
2007-08-01 20:59:19 +00:00
|
|
|
<target name="collator" depends="init,copyCollatorData" description="modular build of collator services">
|
|
|
|
<javac srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off">
|
|
|
|
<include name="com/ibm/icu/impl/data/*Break*.java"/>
|
|
|
|
<include name="com/ibm/icu/text/*BreakIterator*.java"/>
|
|
|
|
<include name="com/ibm/icu/text/*Collation*.java"/>
|
|
|
|
<include name="com/ibm/icu/text/*Collator*.java"/>
|
|
|
|
<include name="com/ibm/icu/text/Normalizer.java"/>
|
|
|
|
<include name="com/ibm/icu/text/Replaceable.java"/>
|
|
|
|
<include name="com/ibm/icu/text/ReplaceableString.java"/>
|
|
|
|
<include name="com/ibm/icu/text/UnicodeFilter.java"/>
|
|
|
|
<include name="com/ibm/icu/text/UnicodeSetIterator.java"/>
|
|
|
|
<include name="com/ibm/icu/text/UTF16.java"/>
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="collatorTests" depends="collator,testdata" description="test collator modular build target">
|
|
|
|
<javac srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off">
|
|
|
|
<patternset refid="common.test.sources" />
|
|
|
|
<include name="com/ibm/icu/dev/test/collator/**/*.java"/>
|
|
|
|
<include name="java,com/ibm/icu/dev/test/search/**/*.java"/>
|
|
|
|
<exclude name="com/ibm/icu/dev/test/collator/RandomCollator.java"/>
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- Module: Compression -->
|
|
|
|
<target name="compression" depends="init" description="modular build of compression services">
|
|
|
|
<javac srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off">
|
|
|
|
<include name="com/ibm/icu/text/SCSU.java"/>
|
|
|
|
<include name="com/ibm/icu/text/UnicodeCompressor.java"/>
|
|
|
|
<include name="com/ibm/icu/text/UnicodeDecompressor.java"/>
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="compressionTests" depends="compression" description="test compression modular build target">
|
|
|
|
<javac srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off">
|
|
|
|
<patternset refid="common.test.sources" />
|
|
|
|
<include name="com/ibm/icu/dev/test/compression/**/*.java"/>
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- Module: Format -->
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="copyFormatData" depends="initBase" if="icu4j.module.resources">
|
2007-08-01 20:59:19 +00:00
|
|
|
<!-- Format does not require BreakIterator data -->
|
2007-08-25 01:15:23 +00:00
|
|
|
<unjar src="${icudatajar.file}" dest="${build.dir}">
|
2007-04-20 21:02:49 +00:00
|
|
|
<patternset>
|
|
|
|
<include name="**/*.icu" />
|
2007-08-01 20:59:19 +00:00
|
|
|
<include name="**/*.res" />
|
|
|
|
<exclude name="**/translit/*.res" />
|
2007-04-20 21:02:49 +00:00
|
|
|
</patternset>
|
|
|
|
</unjar>
|
|
|
|
<touch file="${build.dir}/${icu4j.data.path}/uprops.icu" />
|
|
|
|
</target>
|
|
|
|
|
2007-08-01 20:59:19 +00:00
|
|
|
<target name="format" depends="init,copyFormatData" description="modular build of formatting services">
|
|
|
|
<javac srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off">
|
|
|
|
<include name="com/ibm/icu/lang/UCharacter.java"/>
|
|
|
|
<include name="com/ibm/icu/text/*Collator*.java"/>
|
|
|
|
<include name="com/ibm/icu/text/*Format*.java"/>
|
|
|
|
<include name="com/ibm/icu/text/UnicodeSetIterator.java"/>
|
|
|
|
<include name="com/ibm/icu/util/CalendarServiceShim.java"/> </javac>
|
|
|
|
</target>
|
|
|
|
|
2007-08-31 04:45:13 +00:00
|
|
|
<target name="formatTests" depends="format,testdata" description="test format modular build target">
|
2007-08-01 20:59:19 +00:00
|
|
|
<javac srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off">
|
|
|
|
<patternset refid="common.test.sources" />
|
|
|
|
<include name="com/ibm/icu/dev/test/format/**/*.java"/>
|
|
|
|
<exclude name="com/ibm/icu/dev/test/format/GlobalizationPreferencesTest.java"/>
|
|
|
|
</javac>
|
|
|
|
<copy file="${src.dir}/com/ibm/icu/dev/test/format/NumberFormatTestCases.txt"
|
|
|
|
todir="${build.dir}/com/ibm/icu/dev/test/format"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- Module: Normalizer -->
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="normalizerData" depends="initBase">
|
2007-08-25 01:15:23 +00:00
|
|
|
<unjar src="${icudatajar.file}" dest="${build.dir}">
|
2007-04-20 21:02:49 +00:00
|
|
|
<patternset>
|
2007-08-01 20:59:19 +00:00
|
|
|
<include name="**/ucase.icu" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<include name="**/unorm.icu" />
|
|
|
|
<include name="**/uprops.icu" />
|
|
|
|
<include name="**/pnames.icu" />
|
|
|
|
<include name="**/unames.icu" />
|
|
|
|
</patternset>
|
|
|
|
</unjar>
|
|
|
|
<touch file="${build.dir}/${icu4j.data.path}/uprops.icu" />
|
|
|
|
</target>
|
2007-08-01 20:59:19 +00:00
|
|
|
|
|
|
|
<target name="normalizer" depends="init,normalizerData" description="modular build of normalizer services">
|
|
|
|
<javac includes="com/ibm/icu/text/Normalizer.java,com/ibm/icu/text/CanonicalIterator.java,com/ibm/icu/text/UTF16.java,com/ibm/icu/text/UCharacterIterator.java,com/ibm/icu/text/UForwardCharacterIterator.java,com/ibm/icu/text/Replaceable.java,com/ibm/icu/text/ReplaceableString.java,com/ibm/icu/text/UnicodeFilter.java,com/ibm/icu/text/UnicodeSetIterator.java,com/ibm/icu/lang/**/*"
|
2008-05-20 17:00:36 +00:00
|
|
|
excludes="**/CVS/**/*,com/ibm/icu/lang/UScriptRun.java,com/ibm/icu/impl/UtilityExtensions.java,com/ibm/icu/impl/TrieBuilder.java,com/ibm/icu/impl/IntTrieBuilder.java,com/ibm/icu/impl/BOCU.java,com/ibm/icu/impl/UnicodeCharacterIterator.java"
|
2007-08-01 20:59:19 +00:00
|
|
|
srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off">
|
|
|
|
<include name="com/ibm/icu/lang/**/*"/>
|
|
|
|
<include name="com/ibm/icu/text/CanonicalIterator.java"/>
|
|
|
|
<include name="com/ibm/icu/text/Normalizer.java"/>
|
|
|
|
<include name="com/ibm/icu/text/Replaceable.java"/>
|
|
|
|
<include name="com/ibm/icu/text/ReplaceableString.java"/>
|
|
|
|
<include name="com/ibm/icu/text/UCharacterIterator.java"/>
|
|
|
|
<include name="com/ibm/icu/text/UForwardCharacterIterator.java"/>
|
|
|
|
<include name="com/ibm/icu/text/UnicodeFilter.java"/>
|
|
|
|
<include name="com/ibm/icu/text/UnicodeSetIterator.java"/>
|
|
|
|
<include name="com/ibm/icu/text/UTF16.java"/>
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="normalizerTests" depends="normalizer">
|
|
|
|
<javac srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off">
|
|
|
|
<patternset refid="common.test.sources" />
|
|
|
|
<include name="com/ibm/icu/dev/test/normalizer/**/*.java"/>
|
|
|
|
<exclude name="com/ibm/icu/dev/test/normalizer/TestDeprecatedNormalizerAPI.java"/>
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- Module: Basic Properties / Full Properties -->
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="copyBasicPropsData" depends="initBase">
|
2007-08-25 01:15:23 +00:00
|
|
|
<unjar src="${icudatajar.file}" dest="${build.dir}">
|
2007-04-20 21:02:49 +00:00
|
|
|
<patternset>
|
|
|
|
<include name="**/unorm.icu" />
|
|
|
|
<include name="**/uprops.icu" />
|
|
|
|
<include name="**/ubidi.icu" />
|
|
|
|
<include name="**/ucase.icu" />
|
|
|
|
<include name="**/pnames.icu" />
|
2007-08-01 20:59:19 +00:00
|
|
|
<include name="**/unames.icu" />
|
2007-04-20 21:02:49 +00:00
|
|
|
</patternset>
|
|
|
|
</unjar>
|
|
|
|
<touch file="${build.dir}/${icu4j.data.path}/uprops.icu" />
|
|
|
|
</target>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="copyFullPropsData" depends="initBase">
|
2007-08-25 01:15:23 +00:00
|
|
|
<unjar src="${icudatajar.file}" dest="${build.dir}">
|
2007-04-20 21:02:49 +00:00
|
|
|
<patternset>
|
2007-08-01 20:59:19 +00:00
|
|
|
<include name="**/unorm.icu" />
|
|
|
|
<include name="**/uprops.icu" />
|
|
|
|
<include name="**/ubidi.icu" />
|
|
|
|
<include name="**/ucase.icu" />
|
|
|
|
<include name="**/unames.icu" />
|
|
|
|
<include name="**/pnames.icu" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<include name="**/*.res" />
|
2007-08-01 20:59:19 +00:00
|
|
|
<include name="**/*.brk" />
|
2008-05-22 03:41:41 +00:00
|
|
|
<include name="**/*.ctd" />
|
2007-08-01 20:59:19 +00:00
|
|
|
<exclude name="**/coll/*.res" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<exclude name="**/translit/*.res" />
|
2007-08-01 20:59:19 +00:00
|
|
|
<exclude name="**/rbnf/*.res" />
|
2007-04-20 21:02:49 +00:00
|
|
|
</patternset>
|
|
|
|
</unjar>
|
|
|
|
<touch file="${build.dir}/${icu4j.data.path}/uprops.icu" />
|
|
|
|
</target>
|
|
|
|
|
2007-08-01 20:59:19 +00:00
|
|
|
<target name="propertiesBasic" depends="init,propertiesClasses,copyBasicPropsData" description="modular build of basic character properties">
|
2007-04-20 21:02:49 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="propertiesFull" depends="init,propertiesClasses,copyFullPropsData" description="modular build of full character properties">
|
|
|
|
</target>
|
|
|
|
|
2007-08-01 20:59:19 +00:00
|
|
|
<target name="propertiesBasicTests" depends="propertiesBasic,propertiesTests" description="modular build of basic character properties">
|
2007-04-20 21:02:49 +00:00
|
|
|
</target>
|
|
|
|
|
2007-08-01 20:59:19 +00:00
|
|
|
<target name="propertiesFullTests" depends="propertiesFull,propertiesTests" description="modular build of full character properties">
|
2007-04-20 21:02:49 +00:00
|
|
|
</target>
|
|
|
|
|
2007-08-01 20:59:19 +00:00
|
|
|
<target name="propertiesClasses">
|
|
|
|
<javac srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off">
|
|
|
|
<include name="com/ibm/icu/impl/data/*Break*.java"/>
|
|
|
|
<include name="com/ibm/icu/lang/**/*"/>
|
|
|
|
<include name="com/ibm/icu/text/*BreakDictionary*.java"/>
|
|
|
|
<include name="com/ibm/icu/text/*BreakIterator*.java"/>
|
|
|
|
<include name="com/ibm/icu/text/UnicodeSetIterator.java"/>
|
2007-04-20 21:02:49 +00:00
|
|
|
</javac>
|
|
|
|
</target>
|
2004-06-09 03:58:42 +00:00
|
|
|
|
2007-08-01 20:59:19 +00:00
|
|
|
<target name="propertiesTests">
|
|
|
|
<javac srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off">
|
|
|
|
<patternset refid="common.test.sources" />
|
|
|
|
<include name="com/ibm/icu/dev/test/lang/**/*.java"/>
|
|
|
|
<exclude name="com/ibm/icu/dev/test/lang/TestUScriptRun.java"/>
|
2007-04-20 21:02:49 +00:00
|
|
|
</javac>
|
2007-08-01 20:59:19 +00:00
|
|
|
<copy file="${src.dir}/com/ibm/icu/dev/data/unicode/SpecialCasing.txt"
|
|
|
|
todir="${build.dir}/com/ibm/icu/dev/data/unicode/" />
|
2007-04-20 21:02:49 +00:00
|
|
|
</target>
|
2004-06-09 03:58:42 +00:00
|
|
|
|
2007-08-01 20:59:19 +00:00
|
|
|
<!-- Module: Transliterator -->
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="copyTranslitData" depends="initBase">
|
2007-08-25 01:15:23 +00:00
|
|
|
<unjar src="${icudatajar.file}" dest="${build.dir}">
|
2007-08-01 20:59:19 +00:00
|
|
|
<patternset>
|
|
|
|
<include name="**/unorm.icu" />
|
|
|
|
<include name="**/uprops.icu" />
|
|
|
|
<include name="**/ubidi.icu" />
|
|
|
|
<include name="**/ucase.icu" />
|
|
|
|
<include name="**/unames.icu" />
|
|
|
|
<include name="**/pnames.icu" />
|
|
|
|
<include name="**/*.brk" />
|
2008-05-22 03:41:41 +00:00
|
|
|
<include name="**/*.ctd" />
|
|
|
|
<include name="**/brkitr/*.res" />
|
2007-08-01 20:59:19 +00:00
|
|
|
<include name="**/translit/*.res" />
|
|
|
|
</patternset>
|
|
|
|
</unjar>
|
|
|
|
<touch file="${build.dir}/${icu4j.data.path}/uprops.icu" />
|
2007-04-20 21:02:49 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="transliterator" depends="init,propertiesClasses,copyTranslitData" description="modular build of unicode transform services">
|
2007-08-01 20:59:19 +00:00
|
|
|
<javac srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off">
|
|
|
|
<include name="com/ibm/icu/impl/*Iterator*.java"/>
|
|
|
|
<include name="com/ibm/icu/impl/*Property*.java"/>
|
|
|
|
<include name="com/ibm/icu/impl/data/ResourceReader.java"/>
|
|
|
|
<include name="com/ibm/icu/impl/UtilityExtensions.java"/>
|
|
|
|
<include name="com/ibm/icu/text/*Transliterator*.java"/>
|
|
|
|
<include name="com/ibm/icu/text/UnicodeSetIterator.java"/>
|
2007-04-20 21:02:49 +00:00
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
2007-08-01 20:59:19 +00:00
|
|
|
<target name="transliteratorTests" depends="transliterator" description = "test transliterator modular build target">
|
|
|
|
<javac srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off">
|
|
|
|
<patternset refid="common.test.sources" />
|
|
|
|
<include name="com/ibm/icu/dev/test/translit/**/*.java"/>
|
|
|
|
<exclude name="com/ibm/icu/dev/test/translit/UnicodeFilterLogic*.java"/>
|
2007-04-20 21:02:49 +00:00
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
2007-08-01 20:59:19 +00:00
|
|
|
<!-- Module: StringPrep, IDNA -->
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="copyStringPrepData" depends="initBase">
|
2007-08-25 01:15:23 +00:00
|
|
|
<unjar src="${icudatajar.file}" dest="${build.dir}">
|
2007-04-20 21:02:49 +00:00
|
|
|
<patternset>
|
|
|
|
<include name="**/*.spp" />
|
|
|
|
<include name="**/ubidi.icu" />
|
|
|
|
<include name="**/ucase.icu" />
|
|
|
|
<include name="**/unorm.icu" />
|
|
|
|
<include name="**/uprops.icu" />
|
|
|
|
<include name="**/pnames.icu" />
|
|
|
|
<include name="**/unames.icu" />
|
|
|
|
</patternset>
|
|
|
|
</unjar>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="stringPrep" depends="init,normalizer,copyStringPrepData" description="modular build of stringprep services">
|
2007-08-01 20:59:19 +00:00
|
|
|
<javac srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off">
|
|
|
|
<include name="com/ibm/icu/impl/*StringPrep*.java"/>
|
|
|
|
<include name="com/ibm/icu/text/*IDNA*.java"/>
|
|
|
|
<include name="com/ibm/icu/text/*StringPrep*.java"/>
|
2007-04-20 21:02:49 +00:00
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="stringPrepTests" depends="stringPrep" description="test stringPrep modular build target">
|
2007-08-01 20:59:19 +00:00
|
|
|
<javac srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
source="${icu4j.javac.source}"
|
|
|
|
target="${icu4j.javac.target}"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off">
|
|
|
|
<patternset refid="common.test.sources" />
|
|
|
|
<include name="com/ibm/icu/dev/test/stringprep/**/*.java"/>
|
2007-04-20 21:02:49 +00:00
|
|
|
</javac>
|
|
|
|
<unjar src="${src.dir}/com/ibm/icu/dev/data/testdata.jar" dest="${build.dir}">
|
|
|
|
<patternset>
|
2007-08-01 20:59:19 +00:00
|
|
|
<include name="**/*.spp"/>
|
|
|
|
<include name="**/idna_rules.res"/>
|
2007-04-20 21:02:49 +00:00
|
|
|
</patternset>
|
|
|
|
</unjar>
|
|
|
|
</target>
|
|
|
|
|
2007-08-01 20:59:19 +00:00
|
|
|
|
|
|
|
|
2007-04-20 21:02:49 +00:00
|
|
|
<target name="excludeCharset" depends="core" description="excludes charset module from ICU4J">
|
|
|
|
<delete failonerror="yes">
|
2007-12-11 22:06:28 +00:00
|
|
|
<fileset dir="${build.dir}/com/ibm/icu/impl/data/icudt${icu4j.data.version.number}b/">
|
2007-04-20 21:02:49 +00:00
|
|
|
<include name="*.cnv" />
|
|
|
|
<include name="cnvalias.icu" />
|
|
|
|
</fileset>
|
|
|
|
<fileset dir="${build.dir}/com/ibm/icu/charset" />
|
|
|
|
<fileset dir="${build.dir}/META-INF/" />
|
|
|
|
</delete>
|
|
|
|
</target>
|
|
|
|
<target name="excludeCharsetTests" depends="tests" description="excludes charset test from ICU4J">
|
|
|
|
<delete failonerror="yes">
|
|
|
|
<fileset dir="${build.dir}/com/ibm/icu/dev/test/charset" />
|
|
|
|
</delete>
|
|
|
|
</target>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="moduleCheck" depends="initBase" description="run tests for module jar">
|
2007-04-20 21:02:49 +00:00
|
|
|
<java classname="com.ibm.icu.dev.test.TestAll" fork="yes" failonerror="true">
|
2007-09-10 19:39:45 +00:00
|
|
|
<jvmarg line="${test.jvm.args}"/>
|
2007-04-20 21:02:49 +00:00
|
|
|
<arg value="-nothrow" />
|
|
|
|
<arg value="-nodata" />
|
|
|
|
<classpath>
|
|
|
|
<pathelement location="${build.dir}" />
|
|
|
|
</classpath>
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- build the extra Transliterator data pertaining to Han-Latin transliteration -->
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="extraTransliteratorData" depends="initBase" description="build han-to-latin transliterator data (normally omitted)">
|
2007-04-20 21:02:49 +00:00
|
|
|
<copy todir="${build.dir}/com/ibm/icu/impl/data">
|
|
|
|
<fileset dir="${src.dir}/com/ibm/icu/impl/data" includes="Transliterator_Han_Latin_*.txt" />
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- Target for builing XLIFF2ICUConverter Jar -->
|
|
|
|
|
|
|
|
<target name="xliff" depends="init" description="build xliff converter tool">
|
|
|
|
<javac sourcepath="" srcdir="${src.dir}" destdir="${build.dir}" classpathref="build.classpath" source="${icu4j.javac.source}" target="${icu4j.javac.target}" debug="on" deprecation="off">
|
|
|
|
|
|
|
|
<include name="com/ibm/icu/dev/tool/localeconverter/CalculateCRC32.java" />
|
|
|
|
<include name="com/ibm/icu/dev/tool/localeconverter/XLIFF2ICUConverter.java" />
|
|
|
|
<include name="com/ibm/icu/dev/tool/UOption.java" />
|
|
|
|
<include name="com/ibm/icu/dev/tool/xmlcomparator/XMLValidator.java" />
|
|
|
|
</javac>
|
|
|
|
<jar jarfile="xliff.jar" compress="true" includes="com/ibm/icu/dev/tool/localeconverter/XLIFF2ICUConverter*.class,com/ibm/icu/dev/tool/localeconverter/CalculateCRC32.class,com/ibm/icu/dev/tool/UOption.class" basedir="${build.dir}">
|
|
|
|
<manifest>
|
|
|
|
<attribute name="Built-By" value="${corp}" />
|
|
|
|
<section name="common">
|
|
|
|
<attribute name="Specification-Title" value="XLIFF To ICU Converter" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<attribute name="Specification-Version" value="${icu4j.spec.version.string}" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<attribute name="Specification-Vendor" value="ICU" />
|
|
|
|
<attribute name="Implementation-Title" value="XLIFF2ICUConverter" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<attribute name="Implementation-Version" value="${icu4j.impl.version.string}" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<attribute name="Implementation-Vendor" value="${corp}" />
|
|
|
|
<attribute name="Implementation-Vendor-Id" value="com.ibm" />
|
|
|
|
<attribute name="Copyright-Info" value="${copyright}" />
|
|
|
|
<attribute name="Sealed" value="false" />
|
|
|
|
</section>
|
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
|
|
|
|
<jar jarfile="xliff-src.jar" compress="true" includes="com/ibm/icu/dev/tool/localeconverter/XLIFF2ICUConverter.java,com/ibm/icu/dev/tool/localeconverter/CalculateCRC32.java,com/ibm/icu/dev/tool/UOption.java" basedir="${src.dir}">
|
|
|
|
<manifest>
|
|
|
|
<attribute name="Built-By" value="${corp}" />
|
|
|
|
<section name="common">
|
|
|
|
<attribute name="Specification-Title" value="XLIFF To ICU Converter Sources" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<attribute name="Specification-Version" value="${icu4j.spec.version.string}" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<attribute name="Specification-Vendor" value="ICU" />
|
|
|
|
<attribute name="Implementation-Title" value="XLIFF2ICUConverter Sources" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<attribute name="Implementation-Version" value="${icu4j.impl.version.string}" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<attribute name="Implementation-Vendor" value="${corp}" />
|
|
|
|
<attribute name="Implementation-Vendor-Id" value="com.ibm" />
|
|
|
|
<attribute name="Copyright-Info" value="${copyright}" />
|
|
|
|
<attribute name="Sealed" value="false" />
|
|
|
|
</section>
|
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- Target for builing Utilities Jar for CLDR -->
|
|
|
|
|
|
|
|
<target name="cldrUtil" depends="init" description="build Utilities for CLDR">
|
|
|
|
<javac srcdir="${src.dir}" destdir="${build.dir}" source="${icu4j.javac.source}" target="${icu4j.javac.target}" classpathref="build.classpath" debug="on" deprecation="off">
|
|
|
|
|
|
|
|
<include name="com/ibm/icu/dev/test/TestFmwk.java" />
|
|
|
|
<include name="com/ibm/icu/dev/test/util/*.java" />
|
|
|
|
<include name="com/ibm/icu/dev/tool/UOption.java" />
|
|
|
|
</javac>
|
|
|
|
<jar jarfile="utilities.jar" compress="true" includes="com/ibm/icu/dev/test/util/*.class,com/ibm/icu/dev/test/TestFmwk*.class,com/ibm/icu/dev/test/AbstractTest*.class,com/ibm/icu/dev/test/TestLog*.class,com/ibm/icu/dev/tool/UOption*.class" basedir="${build.dir}">
|
|
|
|
<manifest>
|
|
|
|
<attribute name="Built-By" value="${corp}" />
|
|
|
|
<section name="common">
|
|
|
|
<attribute name="Specification-Title" value="Utilities for CLDR Tools" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<attribute name="Specification-Version" value="${icu4j.spec.version.string}" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<attribute name="Specification-Vendor" value="ICU" />
|
|
|
|
<attribute name="Implementation-Title" value="CLDR Utilities" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<attribute name="Implementation-Version" value="${icu4j.impl.version.string}" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<attribute name="Implementation-Vendor" value="${corp}" />
|
|
|
|
<attribute name="Implementation-Vendor-Id" value="com.ibm" />
|
|
|
|
<attribute name="Copyright-Info" value="${copyright}" />
|
|
|
|
<attribute name="Sealed" value="false" />
|
|
|
|
</section>
|
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!--Target for building jars -->
|
|
|
|
<target name="distJars" depends="jarSrc, jar, jarDocs" />
|
|
|
|
|
|
|
|
<!-- Target for checking the loading of bundles from the default package.
|
2005-08-15 21:52:17 +00:00
|
|
|
This is hack to get around Eclipse's build problems.
|
|
|
|
-->
|
2007-04-20 21:02:49 +00:00
|
|
|
<target name="defaultPackage" depends="tests" description="Tests for loading resources in the default package">
|
|
|
|
<copy file="${src.dir}/com/ibm/icu/dev/test/util/TestDefaultPackageLoading.jpp" tofile="${src.dir}/TestDefaultPackageLoading.java" />
|
|
|
|
<copy file="${src.dir}/com/ibm/icu/dev/test/util/TestData_en.jpp" tofile="${src.dir}/TestData_en.java" />
|
|
|
|
<javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="build.classpath" source="${icu4j.javac.source}" target="${icu4j.javac.target}" debug="on" deprecation="off">
|
|
|
|
|
|
|
|
<exclude name="**/CVS/**/*" />
|
|
|
|
<include name="TestData_en.java" />
|
|
|
|
<include name="TestDefaultPackageLoading.java" />
|
|
|
|
</javac>
|
|
|
|
<!-- copy the file to default package and test if we can load it -->
|
|
|
|
<copy file="${build.dir}/com/ibm/icu/dev/data/testdata/te.res" todir="${build.dir}/" />
|
|
|
|
<!-- copy the file up one level and test if java style base name loading works -->
|
|
|
|
<copy file="${build.dir}/com/ibm/icu/dev/data/testdata/te.res" tofile="${build.dir}/com/ibm/icu/dev/data/TestData_bge.res" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="defaultPackageCheck" depends="tests, defaultPackage" description="Run Tests for loading resources in the default package">
|
|
|
|
<!--run the tests -->
|
|
|
|
<java classname="TestDefaultPackageLoading" fork="yes" failonerror="true">
|
2007-08-22 21:55:39 +00:00
|
|
|
<jvmarg line="${test.jvm.args}"/>
|
2007-04-20 21:02:49 +00:00
|
|
|
<arg value="-n" />
|
|
|
|
<classpath>
|
|
|
|
<pathelement path="${java.class.path}/" />
|
|
|
|
<pathelement location="clover.jar" />
|
|
|
|
<pathelement path="${build.dir}" />
|
|
|
|
</classpath>
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- convert @deprecated @draft tags to @provisional -->
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="swatDeprecated" depends="initBase, tools" unless="before.java14">
|
2007-04-20 21:02:49 +00:00
|
|
|
<java classname="com.ibm.icu.dev.tool.docs.SwatDeprecated" classpath="${build.dir}" failonerror="true">
|
|
|
|
<arg value="-src" />
|
|
|
|
<arg value="${src.dir}" />
|
|
|
|
<arg value="-dst" />
|
|
|
|
<arg value="${src.dir}" />
|
|
|
|
<arg value="-overwrite" />
|
|
|
|
<arg value="-verbose" />
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- convert @provisional tags to @deprecated -->
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="restoreDeprecated" depends="initBase, tools" unless="before.java14">
|
2007-04-20 21:02:49 +00:00
|
|
|
<java classname="com.ibm.icu.dev.tool.docs.SwatDeprecated" classpath="${build.dir}" failonerror="true">
|
|
|
|
<arg value="-prov" />
|
|
|
|
<arg value="-src" />
|
|
|
|
<arg value="${src.dir}" />
|
|
|
|
<arg value="-dst" />
|
|
|
|
<arg value="${src.dir}" />
|
|
|
|
<arg value="-overwrite" />
|
|
|
|
<arg value="-verbose" />
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<!-- Eclipse plug-in build targets -->
|
2007-04-20 21:02:49 +00:00
|
|
|
<!-- for building eclipse distribution -->
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="initIcuEclipseVersion" depends="initBase">
|
|
|
|
<tstamp>
|
|
|
|
<format property="build.date" pattern="yyyyMMdd"/>
|
|
|
|
</tstamp>
|
|
|
|
<property name="icu4j.eclipse.build.version.string" value="${icu4j.plugin.impl.version.string}.v${build.date}"/>
|
|
|
|
</target>
|
2007-04-20 21:02:49 +00:00
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="eclipseProjects"
|
|
|
|
depends="eclipseCoreProject,eclipseTestProject,eclipseWrapperProject,eclipseFragmentProject"
|
|
|
|
description="create all eclipse icu projects"/>
|
|
|
|
|
|
|
|
<target name="eclipsePDEBuild"
|
|
|
|
depends="initEclipsePDEBuildEnv, eclipseProjects"
|
|
|
|
description="build icu4j plugin files">
|
|
|
|
|
|
|
|
<!-- copy OSGi jar file to baseLocation -->
|
|
|
|
<mkdir dir="${eclipse.projects.dir}/baseLocation/features"/>
|
|
|
|
<mkdir dir="${eclipse.projects.dir}/baseLocation/plugins"/>
|
|
|
|
<copy toDir="${eclipse.projects.dir}/baseLocation/plugins" file="${eclipse.osgi.jar}"/>
|
|
|
|
|
|
|
|
<!-- copy PDE build script files and run the build -->
|
|
|
|
<pathconvert property="eclipse.projects.dir.full" dirsep="/">
|
|
|
|
<path location="${basedir}/${eclipse.projects.dir}"/>
|
|
|
|
</pathconvert>
|
|
|
|
<antcall target="runEclipsePDEBuild">
|
|
|
|
<param name="icu.plugin.id" value="com.ibm.icu"/>
|
|
|
|
</antcall>
|
|
|
|
<antcall target="runEclipsePDEBuild">
|
|
|
|
<param name="icu.plugin.id" value="com.ibm.icu.base"/>
|
|
|
|
</antcall>
|
|
|
|
<antcall target="runEclipsePDEBuild">
|
|
|
|
<param name="icu.plugin.id" value="com.ibm.icu.jse4"/>
|
|
|
|
</antcall>
|
2007-04-20 21:02:49 +00:00
|
|
|
</target>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="initEclipsePDEBuildEnv"
|
|
|
|
depends="initBase,initEclipseHome,initEclipseLauncher,initEclipseOSGiJar,initEclipsePDE"
|
|
|
|
description="Initialize eclipse PDE build environment">
|
|
|
|
<echo message="[PDE build configuration properties]"/>
|
|
|
|
<echo message=" Eclipse home: ${eclipse.home}"/>
|
|
|
|
<echo message=" Launcher jar: ${eclipse.launcher}"/>
|
|
|
|
<echo message=" OSGi bundle jar: ${eclipse.osgi.jar}"/>
|
|
|
|
<echo message=" Base OS: ${eclipse.baseos}"/>
|
|
|
|
<echo message=" Base WS: ${eclipse.basews}"/>
|
|
|
|
<echo message=" Base ARCH: ${eclipse.basearch}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="initEclipseHome"
|
|
|
|
if="env.ECLIPSE_HOME"
|
|
|
|
unless="eclipse.home"
|
|
|
|
description="Initialize the property eclipse.home from the environment variable ECLIPSE_HOME">
|
|
|
|
<property name="eclipse.home" value="${env.ECLIPSE_HOME}"/>
|
2007-04-20 21:02:49 +00:00
|
|
|
</target>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="initEclipseLauncher"
|
|
|
|
if="eclipse.home"
|
|
|
|
description="Locate org.eclipse.equinox.launcher jar file for eclipse 3.3 and beyond">
|
|
|
|
<first id="equinox.launcher">
|
|
|
|
<fileset dir="${eclipse.home}/plugins">
|
|
|
|
<include name="org.eclipse.equinox.launcher_*.jar"/>
|
|
|
|
</fileset>
|
|
|
|
</first>
|
|
|
|
<pathconvert property="eclipse.launcher" dirsep="/" refid="equinox.launcher"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="initEclipseOSGiJar"
|
|
|
|
if="eclipse.home"
|
|
|
|
description="Locate org.eclipse.osgi plugin jar file">
|
|
|
|
<first id="osgi.bundle">
|
|
|
|
<fileset dir="${eclipse.home}/plugins">
|
|
|
|
<include name="org.eclipse.osgi_*.jar"/>
|
|
|
|
</fileset>
|
|
|
|
</first>
|
|
|
|
<pathconvert property="eclipse.osgi.jar" dirsep="/" refid="osgi.bundle"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="initEclipsePDE"
|
|
|
|
depends="locateEclipsePDE"
|
|
|
|
if="eclipse.pde.dir"
|
|
|
|
description="Set up PDE runtime arguments">
|
|
|
|
<property file="${eclipse.pde.dir}/templates/headless-build/build.properties" prefix="pde.template"/>
|
|
|
|
<property name="eclipse.baseos" value="${pde.template.baseos}"/>
|
|
|
|
<property name="eclipse.basews" value="${pde.template.basews}"/>
|
|
|
|
<property name="eclipse.basearch" value="${pde.template.basearch}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="locateEclipsePDE"
|
|
|
|
if="eclipse.home"
|
|
|
|
description="Locate org.eclipse.pde.build plug-in and set the property 'eclipse.pde.dir'">
|
|
|
|
<first id="eclipse.pde.plugin.dir">
|
|
|
|
<dirset dir="${eclipse.home}/plugins">
|
|
|
|
<include name="org.eclipse.pde.build_*"/>
|
|
|
|
</dirset>
|
|
|
|
</first>
|
|
|
|
<pathconvert property="eclipse.pde.dir" dirsep="/" refid="eclipse.pde.plugin.dir"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="runEclipsePDEBuild">
|
|
|
|
<mkdir dir="${eclipse.projects.dir}/buildScripts/${icu.plugin.id}"/>
|
|
|
|
<copy toDir="${eclipse.projects.dir}/buildScripts/${icu.plugin.id}">
|
|
|
|
<fileset dir="${eclipse.dir}/pdebuild" includes="**/*"/>
|
|
|
|
<filterset>
|
|
|
|
<filter token="PLUGIN_ID" value="${icu.plugin.id}"/>
|
|
|
|
<filter token="BUILD_DIR" value="${eclipse.projects.dir.full}"/>
|
|
|
|
<filter token="BUILD_TYPE" value="ICU4J"/>
|
|
|
|
<filter token="BUILD_ID" value="${icu.plugin.id}"/>
|
|
|
|
<filter token="BASE_LOCATION" value="${eclipse.projects.dir.full}/baseLocation"/>
|
|
|
|
<filter token="BASE_OS" value="${eclipse.baseos}"/>
|
|
|
|
<filter token="BASE_WS" value="${eclipse.basews}"/>
|
|
|
|
<filter token="BASE_ARCH" value="${eclipse.basearch}"/>
|
|
|
|
</filterset>
|
|
|
|
</copy>
|
|
|
|
|
|
|
|
<java jar="${eclipse.launcher}" fork="true" failonerror="true">
|
|
|
|
<arg value="-application"/>
|
|
|
|
<arg value="org.eclipse.ant.core.antRunner"/>
|
|
|
|
<arg value="-buildfile"/>
|
|
|
|
<arg value="${eclipse.pde.dir}/scripts/build.xml"/>
|
|
|
|
<arg value="-Dbuilder=${eclipse.projects.dir.full}/buildScripts/${icu.plugin.id}"/>
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="eclipseMangle" depends="buildMangle">
|
|
|
|
<antcall target="doMangle">
|
|
|
|
<param name="target.defs" value="FOUNDATION10" />
|
|
|
|
<param name="input.file" value="@preprocessor.txt" />
|
|
|
|
</antcall>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="eclipseCore" depends="coreData,icudata,durationdata,eclipseMangle">
|
|
|
|
<javac includes="com/ibm/icu/util/**/*.java,com/ibm/icu/text/**/*.java,com/ibm/icu/math/**/*.java,com/ibm/icu/impl/**/*.java,com/ibm/icu/lang/*.java"
|
|
|
|
compiler="javac1.3"
|
|
|
|
srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
bootclasspath="ee.foundation.jar"
|
|
|
|
source="1.3"
|
|
|
|
target="1.1"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off"
|
|
|
|
encoding="ascii" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<antcall target="indices" />
|
|
|
|
<jar jarfile="${jar.file}" compress="true">
|
|
|
|
<fileset dir="${basedir}" includes="license.html, unicode-license.txt" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<fileset dir="${build.dir}">
|
|
|
|
<exclude name="META-INF/services/**/*" />
|
|
|
|
<exclude name="com/ibm/icu/charset/**/*" />
|
|
|
|
<exclude name="${icu4j.data.path}/*.cnv" />
|
|
|
|
<exclude name="${icu4j.data.path}/cnvalias.icu" />
|
|
|
|
<include name="com/ibm/icu/util/**/*" />
|
|
|
|
<include name="com/ibm/icu/text/**/*" />
|
|
|
|
<include name="com/ibm/icu/math/**/*" />
|
|
|
|
<include name="com/ibm/icu/impl/**/*" />
|
|
|
|
<include name="com/ibm/icu/lang/**/*" />
|
|
|
|
</fileset>
|
2007-04-20 21:02:49 +00:00
|
|
|
<manifest>
|
|
|
|
<attribute name="Built-By" value="${corp}" />
|
|
|
|
<section name="common">
|
|
|
|
<attribute name="Specification-Title" value="ICU4J Eclipse Build" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<attribute name="Specification-Version" value="${icu4j.spec.version.string}" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<attribute name="Specification-Vendor" value="ICU" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<attribute name="Implementation-Title" value="ICU for Java Eclipse plug-in" />
|
|
|
|
<attribute name="Implementation-Version" value="${icu4j.impl.version.string}" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<attribute name="Implementation-Vendor" value="${corp}" />
|
|
|
|
<attribute name="Implementation-Vendor-Id" value="com.ibm" />
|
|
|
|
<attribute name="Copyright-Info" value="${copyright}" />
|
|
|
|
<attribute name="Sealed" value="false" />
|
|
|
|
</section>
|
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="eclipseCoreProject"
|
|
|
|
depends="eclipseCore,initIcuEclipseVersion"
|
|
|
|
description="gather eclipse icu core project files">
|
2007-04-20 21:02:49 +00:00
|
|
|
<delete failonerror="no">
|
2007-08-22 08:28:38 +00:00
|
|
|
<fileset dir="${eclipse.projects.dir}/plugins/com.ibm.icu" />
|
|
|
|
<fileset dir="${eclipse.projects.dir}/features/com.ibm.icu" />
|
2007-04-20 21:02:49 +00:00
|
|
|
</delete>
|
2007-08-22 08:28:38 +00:00
|
|
|
|
|
|
|
<!-- PLUGIN FILES -->
|
|
|
|
<!-- icu source -->
|
|
|
|
<copy toDir="${eclipse.projects.dir}/plugins/com.ibm.icu/src/com/ibm/icu">
|
|
|
|
<fileset dir="src/com/ibm/icu"
|
|
|
|
includes="impl/**/*,lang/**/*,math/**/*,text/**/*,util/**/*"
|
|
|
|
excludes="**/.svn/**/*,**/*.jar,**/Transliterator_Han_Latin*.txt" />
|
2007-04-20 21:02:49 +00:00
|
|
|
</copy>
|
2007-08-22 08:28:38 +00:00
|
|
|
<!-- icu data -->
|
|
|
|
<copy todir="${eclipse.projects.dir}/plugins/com.ibm.icu/src/com/ibm/icu/impl/data">
|
|
|
|
<fileset dir="${build.dir}/com/ibm/icu/impl/data"
|
2008-04-03 16:50:30 +00:00
|
|
|
includes="**/*.brk,**/*.icu,**/*.res,**/*.spp,**/*.txt,**/*.ctd"
|
2007-08-22 08:28:38 +00:00
|
|
|
excludes="**/Transliterator_Han_Latin*.txt" />
|
2007-04-20 21:02:49 +00:00
|
|
|
</copy>
|
2007-08-22 08:28:38 +00:00
|
|
|
<!-- plugin project -->
|
|
|
|
<copy todir="${eclipse.projects.dir}/plugins/com.ibm.icu">
|
|
|
|
<fileset dir="${eclipse.dir}/plugins/com.ibm.icu" excludes="**/.svn/**/*" />
|
|
|
|
<filterset>
|
|
|
|
<filter token="BUILD_VERSION" value="${icu4j.eclipse.build.version.string}" />
|
|
|
|
<filter token="COPYRIGHT" value="${copyright.eclipse}" />
|
|
|
|
<filter token="IMPL_VERSION" value="${icu4j.impl.version.string}" />
|
2007-12-11 22:06:28 +00:00
|
|
|
<filter token="DATA_VERSION_NUMBER" value="${icu4j.data.version.number}" />
|
2007-08-22 08:28:38 +00:00
|
|
|
</filterset>
|
2007-04-20 21:02:49 +00:00
|
|
|
</copy>
|
2007-08-22 08:28:38 +00:00
|
|
|
<!-- license -->
|
|
|
|
<copy file="license.html"
|
|
|
|
todir="${eclipse.projects.dir}/plugins/com.ibm.icu/about_files" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<!-- ucd terms -->
|
2007-08-22 08:28:38 +00:00
|
|
|
<copy file="src/com/ibm/icu/dev/data/unicode/ucdterms.txt"
|
|
|
|
todir="${eclipse.projects.dir}/plugins/com.ibm.icu/about_files" />
|
|
|
|
<!-- about -->
|
|
|
|
<copy file="${eclipse.dir}/misc/about_icu.html"
|
|
|
|
tofile="${eclipse.projects.dir}/plugins/com.ibm.icu/about.html" />
|
|
|
|
|
|
|
|
<!-- FEATURE FILES -->
|
|
|
|
<copy todir="${eclipse.projects.dir}/features/com.ibm.icu">
|
|
|
|
<fileset dir="${eclipse.dir}/features/com.ibm.icu" excludes="**/.svn/**/*" />
|
|
|
|
<filterset>
|
|
|
|
<filter token="BUILD_VERSION" value="${icu4j.eclipse.build.version.string}" />
|
|
|
|
<filter token="COPYRIGHT" value="${copyright.eclipse}" />
|
2007-12-11 22:06:28 +00:00
|
|
|
<filter token="DATA_VERSION_NUMBER" value="${icu4j.data.version.number}" />
|
2007-08-22 08:28:38 +00:00
|
|
|
</filterset>
|
|
|
|
</copy>
|
2007-04-20 21:02:49 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- ensure eclipse wrapper code builds with foundation1.0/java1.3 -->
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="eclipseWrapper" depends="initBase">
|
|
|
|
<mkdir dir="${wrapper.build.dir}" />
|
|
|
|
<javac includes="com/ibm/icu/util/**/*.java,com/ibm/icu/text/**/*.java"
|
|
|
|
compiler="javac1.3"
|
|
|
|
srcdir="${eclipse.dir}/plugins/com.ibm.icu.base/src"
|
|
|
|
destdir="${wrapper.build.dir}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
bootclasspath="ee.foundation.jar"
|
|
|
|
source="1.3"
|
|
|
|
target="1.1"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off"
|
|
|
|
encoding="ascii" />
|
|
|
|
<jar jarfile="${jdk.wrapper.jar.file}"
|
|
|
|
compress="true"
|
|
|
|
basedir="${wrapper.build.dir}" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="eclipseWrapperTest" depends="eclipseWrapper">
|
2007-04-20 21:02:49 +00:00
|
|
|
<!-- TODO: build the wrapper test code this ant target -->
|
|
|
|
</target>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="eclipseWrapperProject"
|
|
|
|
depends="eclipseWrapper,eclipseWrapperTest,initIcuEclipseVersion"
|
|
|
|
description="gather eclipse icu core project files">
|
2007-04-20 21:02:49 +00:00
|
|
|
<delete failonerror="no">
|
2007-08-22 08:28:38 +00:00
|
|
|
<fileset dir="${eclipse.projects.dir}/plugins/com.ibm.icu.base" />
|
|
|
|
<fileset dir="${eclipse.projects.dir}/plugins/com.ibm.icu.base.tests" />
|
|
|
|
<fileset dir="${eclipse.projects.dir}/features/com.ibm.icu.base" />
|
2007-04-20 21:02:49 +00:00
|
|
|
</delete>
|
2007-08-22 08:28:38 +00:00
|
|
|
<!-- PLUGIN FILES -->
|
|
|
|
<!-- source and project files -->
|
|
|
|
<copy todir="${eclipse.projects.dir}/plugins">
|
|
|
|
<fileset dir="${eclipse.dir}/plugins"
|
|
|
|
includes="com.ibm.icu.base/**/*,com.ibm.icu.base.tests/**/*"
|
|
|
|
excludes="**/.svn/**/*" />
|
|
|
|
<filterset>
|
|
|
|
<filter token="BUILD_VERSION" value="${icu4j.eclipse.build.version.string}" />
|
|
|
|
<filter token="COPYRIGHT" value="${copyright.eclipse}" />
|
|
|
|
<filter token="IMPL_VERSION" value="${icu4j.impl.version.string}" />
|
2007-12-11 22:06:28 +00:00
|
|
|
<filter token="DATA_VERSION_NUMBER" value="${icu4j.data.version.number}" />
|
2007-08-22 08:28:38 +00:00
|
|
|
</filterset>
|
|
|
|
</copy>
|
|
|
|
<!-- license -->
|
|
|
|
<copy file="license.html"
|
|
|
|
todir="${eclipse.projects.dir}/plugins/com.ibm.icu.base/about_files" />
|
|
|
|
<!-- about -->
|
2008-06-13 20:06:16 +00:00
|
|
|
<copy file="${eclipse.dir}/misc/about_icu_base.html"
|
2007-08-22 08:28:38 +00:00
|
|
|
tofile="${eclipse.projects.dir}/plugins/com.ibm.icu.base/about.html" />
|
|
|
|
|
|
|
|
<!-- FEATURE FILES -->
|
|
|
|
<!-- project files -->
|
|
|
|
<copy todir="${eclipse.projects.dir}/features/com.ibm.icu.base">
|
|
|
|
<fileset dir="${eclipse.dir}/features/com.ibm.icu.base"
|
|
|
|
excludes="**/.svn/**/*"/>
|
|
|
|
<filterset>
|
|
|
|
<filter token="BUILD_VERSION" value="${icu4j.eclipse.build.version.string}" />
|
|
|
|
<filter token="COPYRIGHT" value="${copyright.eclipse}" />
|
2007-12-11 22:06:28 +00:00
|
|
|
<filter token="DATA_VERSION_NUMBER" value="${icu4j.data.version.number}" />
|
2007-08-22 08:28:38 +00:00
|
|
|
</filterset>
|
2007-04-20 21:02:49 +00:00
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="eclipseTests"
|
|
|
|
depends="eclipseCore,testdata,eclipseMangle"
|
|
|
|
description="build tests trimmed for eclipse API">
|
2007-04-20 21:02:49 +00:00
|
|
|
<!-- TODO: we should actually use ee.foundation.jar for eclipse env -->
|
2007-06-27 23:08:03 +00:00
|
|
|
<javac includes="com/ibm/icu/dev/test/**/*.java"
|
2007-08-22 08:28:38 +00:00
|
|
|
excludes="com/ibm/icu/dev/test/charset/**/*.*,com/ibm/icu/dev/test/perf/**/*.*"
|
|
|
|
srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
source="1.3"
|
|
|
|
target="1.3"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off" />
|
|
|
|
<antcall target="indices"/>
|
2007-04-20 21:02:49 +00:00
|
|
|
<jar jarfile="${testjar.file}" compress="true">
|
|
|
|
<fileset dir="${build.dir}" includes="com/ibm/icu/dev/test/**/*" />
|
|
|
|
<fileset dir="${build.dir}" includes="com/ibm/icu/dev/data/**/*" />
|
|
|
|
<manifest>
|
|
|
|
<attribute name="Built-By" value="${corp}" />
|
|
|
|
<section name="common">
|
2007-08-22 08:28:38 +00:00
|
|
|
<attribute name="Specification-Title" value="ICU4J Eclipse Tests"/>
|
|
|
|
<attribute name="Specification-Version" value="${icu4j.spec.version.string}"/>
|
|
|
|
<attribute name="Specification-Vendor" value="ICU"/>
|
|
|
|
<attribute name="Implementation-Title" value="ICU for Java Eclipse plug-in Tests"/>
|
|
|
|
<attribute name="Implementation-Version" value="${icu4j.impl.version.string}"/>
|
|
|
|
<attribute name="Implementation-Vendor" value="${corp}"/>
|
|
|
|
<attribute name="Implementation-Vendor-Id" value="com.ibm"/>
|
|
|
|
<attribute name="Copyright-Info" value="${copyright}"/>
|
|
|
|
<attribute name="Sealed" value="false"/>
|
2007-04-20 21:02:49 +00:00
|
|
|
</section>
|
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="eclipseTestProject" depends="eclipseTests,eclipseZipTestSrc" description="gather eclipse icu test project files">
|
2007-04-20 21:02:49 +00:00
|
|
|
<delete failonerror="no">
|
2007-08-22 08:28:38 +00:00
|
|
|
<fileset dir="${eclipse.projects.dir}/plugins/com.ibm.icu.tests"/>
|
2007-04-20 21:02:49 +00:00
|
|
|
</delete>
|
|
|
|
<!-- copy eclipse test source and project files -->
|
2007-08-22 08:28:38 +00:00
|
|
|
<copy toDir="${eclipse.projects.dir}/plugins/com.ibm.icu.tests">
|
|
|
|
<fileset dir="${eclipse.dir}/plugins/com.ibm.icu.tests"
|
|
|
|
excludes="**/.svn/**/"/>
|
|
|
|
<filterset>
|
|
|
|
<filter token="COPYRIGHT" value="${copyright.eclipse}"/>
|
|
|
|
</filterset>
|
2007-04-20 21:02:49 +00:00
|
|
|
</copy>
|
|
|
|
<!-- copy icu test jar -->
|
2007-08-22 08:28:38 +00:00
|
|
|
<copy toDir="${eclipse.projects.dir}/plugins/com.ibm.icu.tests" file="${testjar.file}"/>
|
2007-04-20 21:02:49 +00:00
|
|
|
<!-- copy icu test source zip -->
|
2007-08-22 08:28:38 +00:00
|
|
|
<copy toDir="${eclipse.projects.dir}/plugins/com.ibm.icu.tests" file="${zipTestSrc.file}"/>
|
2007-04-20 21:02:49 +00:00
|
|
|
</target>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="eclipseFragmentMangle" depends="buildMangle">
|
|
|
|
<antcall target="initSrc"/>
|
|
|
|
<antcall target="doMangle">
|
|
|
|
<param name="target.defs" value="ECLIPSE_FRAGMENT" />
|
|
|
|
<param name="input.file" value="@eclipseFragment.txt" />
|
|
|
|
</antcall>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="eclipseFragment" depends="eclipseCore,eclipseFragmentMangle">
|
2007-08-27 19:11:51 +00:00
|
|
|
<javac compiler="javac1.4"
|
2007-08-22 08:28:38 +00:00
|
|
|
srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
classpathref="build.classpath"
|
|
|
|
source="1.3"
|
|
|
|
target="1.2"
|
|
|
|
debug="on"
|
|
|
|
deprecation="off"
|
|
|
|
encoding="ascii"
|
2007-08-27 19:11:51 +00:00
|
|
|
listfiles="true">
|
|
|
|
<include name="com/ibm/icu/impl/DateNumberFormat.java" />
|
|
|
|
<include name="com/ibm/icu/impl/duration/BasicDurationFormat.java" />
|
|
|
|
<include name="com/ibm/icu/impl/ICUResourceBundleReader.java" />
|
|
|
|
<include name="com/ibm/icu/impl/PatternTokenizer.java" />
|
|
|
|
<include name="com/ibm/icu/impl/Utility.java" />
|
|
|
|
<include name="com/ibm/icu/lang/UCharacter.java" />
|
|
|
|
<include name="com/ibm/icu/math/BigDecimal.java" />
|
|
|
|
<include name="com/ibm/icu/text/Bidi.java" />
|
|
|
|
<include name="com/ibm/icu/text/ChineseDateFormat.java" />
|
|
|
|
<include name="com/ibm/icu/text/DateFormat.java" />
|
|
|
|
<include name="com/ibm/icu/text/DateTimePatternGenerator.java" />
|
|
|
|
<include name="com/ibm/icu/text/DecimalFormat.java" />
|
|
|
|
<include name="com/ibm/icu/text/DigitList.java" />
|
|
|
|
<include name="com/ibm/icu/text/MessageFormat.java" />
|
|
|
|
<include name="com/ibm/icu/text/NumberFormat.java" />
|
|
|
|
<include name="com/ibm/icu/text/RuleBasedBreakIterator.java" />
|
|
|
|
<include name="com/ibm/icu/text/RuleBasedNumberFormat.java" />
|
|
|
|
<include name="com/ibm/icu/text/SimpleDateFormat.java" />
|
|
|
|
<include name="com/ibm/icu/text/UnicodeSet.java" />
|
|
|
|
<include name="com/ibm/icu/text/UTF16.java" />
|
|
|
|
</javac>
|
|
|
|
|
|
|
|
<!-- collect fragment specific files -->
|
2007-08-22 08:28:38 +00:00
|
|
|
<jar jarfile="${fragment.jar.file}" compress="true">
|
2007-08-27 19:11:51 +00:00
|
|
|
<fileset dir="${build.dir}">
|
|
|
|
<include name="com/ibm/icu/impl/DateNumberFormat.class" />
|
|
|
|
<include name="com/ibm/icu/impl/duration/BasicDurationFormat.class" />
|
|
|
|
<include name="com/ibm/icu/impl/ICUResourceBundleReader.class" />
|
|
|
|
<include name="com/ibm/icu/impl/PatternTokenizer.class" />
|
|
|
|
<include name="com/ibm/icu/impl/Utility.class" />
|
|
|
|
<include name="com/ibm/icu/lang/UCharacter.class" />
|
|
|
|
<include name="com/ibm/icu/math/BigDecimal.class" />
|
|
|
|
<include name="com/ibm/icu/text/Bidi.class" />
|
|
|
|
<include name="com/ibm/icu/text/ChineseDateFormat.class" />
|
|
|
|
<include name="com/ibm/icu/text/DateFormat.class" />
|
|
|
|
<include name="com/ibm/icu/text/DateTimePatternGenerator.class" />
|
|
|
|
<include name="com/ibm/icu/text/DecimalFormat.class" />
|
|
|
|
<include name="com/ibm/icu/text/DigitList.class" />
|
|
|
|
<include name="com/ibm/icu/text/MessageFormat.class" />
|
|
|
|
<include name="com/ibm/icu/text/NumberFormat.class" />
|
|
|
|
<include name="com/ibm/icu/text/RuleBasedBreakIterator.class" />
|
|
|
|
<include name="com/ibm/icu/text/RuleBasedNumberFormat.class" />
|
|
|
|
<include name="com/ibm/icu/text/SimpleDateFormat.class" />
|
|
|
|
<include name="com/ibm/icu/text/UnicodeSet.class" />
|
|
|
|
<include name="com/ibm/icu/text/UTF16.class" />
|
|
|
|
|
|
|
|
<include name="com/ibm/icu/lang/UCharacter$*.class" />
|
|
|
|
<include name="com/ibm/icu/text/Bidi$*.class" />
|
|
|
|
<include name="com/ibm/icu/text/ChineseDateFormat$*.class" />
|
|
|
|
<include name="com/ibm/icu/text/DateFormat$*.class" />
|
|
|
|
<include name="com/ibm/icu/text/DateTimePatternGenerator$*.class" />
|
|
|
|
<include name="com/ibm/icu/text/MessageFormat$*.class" />
|
|
|
|
<include name="com/ibm/icu/text/NumberFormat$*.class" />
|
|
|
|
<include name="com/ibm/icu/text/SimpleDateFormat$*.class" />
|
|
|
|
<include name="com/ibm/icu/text/UnicodeSet$*.class" />
|
|
|
|
<include name="com/ibm/icu/text/UTF16$*.class" />
|
2007-08-22 08:28:38 +00:00
|
|
|
</fileset>
|
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="eclipseFragmentProject"
|
|
|
|
depends="eclipseFragment,initIcuEclipseVersion"
|
|
|
|
description="gather eclipse icu fragment project files">
|
|
|
|
<delete failonerror="no">
|
|
|
|
<fileset dir="${eclipse.projects.dir}/plugins/com.ibm.icu.jse4" />
|
|
|
|
<fileset dir="${eclipse.projects.dir}/features/com.ibm.icu.jse4" />
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
<!-- PLUGIN FILES -->
|
|
|
|
<!-- source -->
|
|
|
|
<copy toDir="${eclipse.projects.dir}/plugins/com.ibm.icu.jse4/src">
|
2007-08-27 19:11:51 +00:00
|
|
|
<!-- TODO: Better way to collect files? -->
|
2007-08-22 08:28:38 +00:00
|
|
|
<fileset dir="${src.dir}">
|
2007-08-27 19:11:51 +00:00
|
|
|
<include name="com/ibm/icu/impl/DateNumberFormat.java" />
|
|
|
|
<include name="com/ibm/icu/impl/duration/BasicDurationFormat.java" />
|
|
|
|
<include name="com/ibm/icu/impl/ICUResourceBundleReader.java" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<include name="com/ibm/icu/impl/PatternTokenizer.java" />
|
|
|
|
<include name="com/ibm/icu/impl/Utility.java" />
|
|
|
|
<include name="com/ibm/icu/lang/UCharacter.java" />
|
|
|
|
<include name="com/ibm/icu/math/BigDecimal.java" />
|
2007-08-27 19:11:51 +00:00
|
|
|
<include name="com/ibm/icu/text/Bidi.java" />
|
|
|
|
<include name="com/ibm/icu/text/ChineseDateFormat.java" />
|
|
|
|
<include name="com/ibm/icu/text/DateFormat.java" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<include name="com/ibm/icu/text/DateTimePatternGenerator.java" />
|
|
|
|
<include name="com/ibm/icu/text/DecimalFormat.java" />
|
|
|
|
<include name="com/ibm/icu/text/DigitList.java" />
|
2007-08-27 19:11:51 +00:00
|
|
|
<include name="com/ibm/icu/text/MessageFormat.java" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<include name="com/ibm/icu/text/NumberFormat.java" />
|
2007-08-27 19:11:51 +00:00
|
|
|
<include name="com/ibm/icu/text/RuleBasedBreakIterator.java" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<include name="com/ibm/icu/text/RuleBasedNumberFormat.java" />
|
2007-08-27 19:11:51 +00:00
|
|
|
<include name="com/ibm/icu/text/SimpleDateFormat.java" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<include name="com/ibm/icu/text/UnicodeSet.java" />
|
|
|
|
<include name="com/ibm/icu/text/UTF16.java" />
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
<!-- project files -->
|
|
|
|
<copy todir="${eclipse.projects.dir}/plugins/com.ibm.icu.jse4">
|
|
|
|
<fileset dir="${eclipse.dir}/plugins/com.ibm.icu.jse4"
|
|
|
|
excludes="**/.svn/**/*" />
|
|
|
|
<filterset>
|
|
|
|
<filter token="BUILD_VERSION" value="${icu4j.eclipse.build.version.string}" />
|
|
|
|
<filter token="COPYRIGHT" value="${copyright.eclipse}" />
|
|
|
|
<filter token="IMPL_VERSION" value="${icu4j.impl.version.string}" />
|
2007-12-11 22:06:28 +00:00
|
|
|
<filter token="DATA_VERSION_NUMBER" value="${icu4j.data.version.number}" />
|
2007-08-22 08:28:38 +00:00
|
|
|
</filterset>
|
|
|
|
</copy>
|
|
|
|
<!-- license -->
|
|
|
|
<copy file="license.html"
|
|
|
|
todir="${eclipse.projects.dir}/plugins/com.ibm.icu.jse4/about_files" />
|
|
|
|
<!-- ucd terms -->
|
|
|
|
<copy file="src/com/ibm/icu/dev/data/unicode/ucdterms.txt"
|
|
|
|
todir="${eclipse.projects.dir}/plugins/com.ibm.icu.jse4/about_files" />
|
2008-04-03 16:50:30 +00:00
|
|
|
<!-- about -->
|
|
|
|
<copy file="${eclipse.dir}/misc/about_icu.html"
|
|
|
|
tofile="${eclipse.projects.dir}/plugins/com.ibm.icu.jse4/about.html" />
|
2007-08-22 08:28:38 +00:00
|
|
|
|
|
|
|
<!-- FEATURE FILES -->
|
|
|
|
<!-- project files -->
|
|
|
|
<copy todir="${eclipse.projects.dir}/features/com.ibm.icu.jse4">
|
|
|
|
<fileset dir="${eclipse.dir}/features/com.ibm.icu.jse4"
|
|
|
|
excludes="**/.svn/**/*" />
|
|
|
|
<filterset>
|
|
|
|
<filter token="BUILD_VERSION" value="${icu4j.eclipse.build.version.string}" />
|
|
|
|
<filter token="COPYRIGHT" value="${copyright.eclipse}" />
|
2007-12-11 22:06:28 +00:00
|
|
|
<filter token="DATA_VERSION_NUMBER" value="${icu4j.data.version.number}" />
|
2007-08-22 08:28:38 +00:00
|
|
|
</filterset>
|
|
|
|
</copy>
|
2007-04-20 21:02:49 +00:00
|
|
|
</target>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="eclipseZipTestSrc" depends="eclipseMangle" description="build zip of test sources for debugging">
|
2007-04-20 21:02:49 +00:00
|
|
|
<!-- for eclipse -->
|
|
|
|
<zip destfile="${zipTestSrc.file}" compress="true" basedir="${src.dir}" includes="com/ibm/icu/dev/test/**/*" excludes="com/ibm/icu/dev/test/cldr/**/*, com/ibm/icu/dev/test/perf/**/*" />
|
|
|
|
</target>
|
|
|
|
|
2007-08-20 22:17:50 +00:00
|
|
|
<target name="gatherICU4JWrapperAPI" depends="tools" unless="before.java14">
|
2007-04-20 21:02:49 +00:00
|
|
|
<javadoc classpath="${build.dir}" sourcepath="${src.dir}" packagenames="com.ibm.icu.text,com.ibm.icu.util" source="1.4">
|
|
|
|
<doclet name="com.ibm.icu.dev.tool.docs.GatherAPIData" path="${build.dir}">
|
|
|
|
<param name="-name" value="ICU4J 3.6" />
|
|
|
|
<param name="-base" value="com.ibm.icu" />
|
|
|
|
<param name="-output" value="${api.dir}/icu4j36w_i.api" />
|
|
|
|
<param name="-filter" value="BreakIterator|CollationKey|Collator|DateFormat|DecimalFormat|MessageFormat|NumberFormat|SimpleDateFormat|StringTokenizer|Calendar|TimeZone|ULocale|DateFormatSymbols|DecimalFormatSymbols|Calendar|TimeZone" />
|
|
|
|
<!-- param name="-gzip"/ -->
|
|
|
|
</doclet>
|
|
|
|
</javadoc>
|
|
|
|
</target>
|
|
|
|
|
2007-08-20 22:17:50 +00:00
|
|
|
<target name="gatherEclipseWrapperAPI" depends="tools" unless="before.java14">
|
2007-04-20 21:02:49 +00:00
|
|
|
<javadoc classpath="${build.dir}" sourcepath="${src.dir}/com/ibm/icu/dev/eclipse/com.ibm.icu.base/src" packagenames="com.ibm.icu.text,com.ibm.icu.util" source="1.4">
|
|
|
|
<doclet name="com.ibm.icu.dev.tool.docs.GatherAPIData" path="${build.dir}">
|
|
|
|
<param name="-name" value="ICU4J 3.6 Wrapper" />
|
|
|
|
<param name="-base" value="com.ibm.icu" />
|
|
|
|
<param name="-output" value="${api.dir}/icu4j36w_e.api" />
|
|
|
|
<!-- param name="-gzip"/ -->
|
|
|
|
</doclet>
|
|
|
|
</javadoc>
|
|
|
|
</target>
|
|
|
|
|
2007-08-20 22:17:50 +00:00
|
|
|
<target name="reportWrapperAPI" depends="tools" unless="before.java14">
|
2007-04-20 21:02:49 +00:00
|
|
|
<java classname="com.ibm.icu.dev.tool.docs.ReportAPI" classpath="${build.dir}" failonerror="true">
|
|
|
|
<arg value="-old:" />
|
|
|
|
<arg value="${api.dir}/icu4j${icu4j.previous.version.number}w_i.api" />
|
|
|
|
<arg value="-new:" />
|
|
|
|
<arg value="${api.dir}/icu4j${icu4j.version.number}w_e.api" />
|
|
|
|
<arg value="-html" />
|
|
|
|
<arg value="-out:" />
|
|
|
|
<arg value="${api.dir}/icu4j_compare_${icu4j.previous.version.number}_wrapper_java.html" />
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<!-- Test suite launcher targets -->
|
|
|
|
<target name="runCheck" depends="tests">
|
2007-04-20 21:02:49 +00:00
|
|
|
<java classname="com.ibm.icu.dev.test.TestAll" fork="yes" failonerror="true">
|
2007-08-22 21:55:39 +00:00
|
|
|
<jvmarg line="${test.jvm.args}"/>
|
2007-04-20 21:02:49 +00:00
|
|
|
<arg value="-n" />
|
|
|
|
<classpath>
|
|
|
|
<pathelement path="${java.class.path}/" />
|
|
|
|
<pathelement location="${jar.file}" />
|
|
|
|
<pathelement location="${charsets.jar.file}" />
|
|
|
|
<pathelement location="clover.jar" />
|
|
|
|
<pathelement path="${build.dir}" />
|
|
|
|
</classpath>
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="eclipseRunCheck" depends="eclipseTests">
|
2008-06-13 15:46:27 +00:00
|
|
|
<delete dir="${build.dir}/META-INF"/>
|
2007-04-20 21:02:49 +00:00
|
|
|
<java classname="com.ibm.icu.dev.test.TestAll" fork="yes" failonerror="true">
|
2007-08-22 21:55:39 +00:00
|
|
|
<jvmarg line="${test.jvm.args}"/>
|
2007-04-20 21:02:49 +00:00
|
|
|
<arg value="-n" />
|
|
|
|
<classpath>
|
|
|
|
<pathelement path="${java.class.path}/" />
|
|
|
|
<pathelement location="icu4j.jar" />
|
|
|
|
<pathelement location="clover.jar" />
|
|
|
|
<pathelement path="${build.dir}" />
|
|
|
|
</classpath>
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="eclipseCompat" depends="initBase, eclipseCore" />
|
|
|
|
<target name="eclipseCompatTests" depends="initBase, eclipseTests" />
|
|
|
|
<target name="eclipseCompatCheck" depends="initBase, eclipseCompat, eclipseCompatTests, deleteCore, eclipseRunCheck" />
|
2007-04-20 21:02:49 +00:00
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<!-- ICU TimeZone Update Utility targets -->
|
2007-04-20 21:02:49 +00:00
|
|
|
<target name="icutzu" depends="init" description="build ICU4J TimeZone Update Utility Classes">
|
|
|
|
<javac includes="${tzu.src.path}/**/*.java" excludes="**/.svn/**/*" srcdir="${src.dir}" destdir="${build.dir}" classpathref="build.classpath" source="${icu4j.javac.source}" target="${icu4j.javac.target}" debug="on" deprecation="off" encoding="ascii" />
|
|
|
|
</target>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="icutzudata" depends="initBase, jar">
|
2007-04-20 21:02:49 +00:00
|
|
|
<mkdir dir="${tzu.bin.dir}" />
|
|
|
|
<copy todir="${tzu.bin.dir}">
|
|
|
|
<fileset dir="${src.dir}/${tzu.src.path}">
|
|
|
|
<include name="*.cmd" />
|
|
|
|
<include name="*.bat" />
|
|
|
|
<include name="*.sh" />
|
|
|
|
<include name="*.gif" />
|
|
|
|
<include name="*.txt" />
|
|
|
|
<include name="*.html" />
|
2007-04-27 18:21:37 +00:00
|
|
|
<include name="*.css" />
|
2007-04-20 21:02:49 +00:00
|
|
|
</fileset>
|
|
|
|
<fileset file="${basedir}/${jar.file}" />
|
|
|
|
<fileset file="${build.dir}/${icu4j.data.path}/zoneinfo.res" />
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
2007-08-22 08:28:38 +00:00
|
|
|
<target name="icutzujar" depends="initBase, icutzu, icutzudata" description="build ICU4J TimeZone Update Utility classes">
|
2007-04-20 21:02:49 +00:00
|
|
|
<jar jarfile="${tzu.bin.dir}/${tzu.jar.file}" compress="true">
|
|
|
|
<fileset dir="${basedir}" includes="license.html" />
|
|
|
|
<fileset dir="${build.dir}" includes="${tzu.src.path}/**/*.class" />
|
|
|
|
<manifest>
|
|
|
|
<attribute name="Main-Class" value="com.ibm.icu.dev.tool.tzu.ICUTZUMain" />
|
|
|
|
<attribute name="Built-By" value="${corp}" />
|
|
|
|
<section name="common">
|
|
|
|
<attribute name="Specification-Title" value="ICU4J TimeZone Update Utility" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<attribute name="Specification-Version" value="${icu4j.spec.version.string}" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<attribute name="Specification-Vendor" value="ICU" />
|
|
|
|
<attribute name="Implementation-Title" value="ICUTZU" />
|
2007-08-22 08:28:38 +00:00
|
|
|
<attribute name="Implementation-Version" value="${icu4j.impl.version.string}" />
|
2007-04-20 21:02:49 +00:00
|
|
|
<attribute name="Implementation-Vendor" value="${corp}" />
|
|
|
|
<attribute name="Implementation-Vendor-Id" value="com.ibm" />
|
|
|
|
<attribute name="Copyright-Info" value="${copyright}" />
|
|
|
|
<attribute name="Sealed" value="false" />
|
|
|
|
</section>
|
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
<echo message="Please see ${tzu.bin.dir} directory for the files." />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="icutzucheck" depends="icutzujar" description="check ICU4J TimeZone Update Utility">
|
|
|
|
<echo>Testing ICUTZU ...</echo>
|
|
|
|
|
|
|
|
<mkdir dir="${tzu.temp.dir}" />
|
2007-12-21 01:29:52 +00:00
|
|
|
<move todir="${tzu.temp.dir}">
|
2007-04-20 21:02:49 +00:00
|
|
|
<fileset file="${tzu.bin.dir}/DirectorySearch.txt" />
|
|
|
|
<fileset file="${tzu.bin.dir}/zoneinfo.res" />
|
2007-12-21 01:29:52 +00:00
|
|
|
</move>
|
2007-04-20 21:02:49 +00:00
|
|
|
|
2007-12-21 01:29:52 +00:00
|
|
|
<echo file="${tzu.bin.dir}/DirectorySearch.txt">+${tzu.test.dir}</echo>
|
2007-04-20 21:02:49 +00:00
|
|
|
<get dest="${tzu.bin.dir}/zoneinfo.res" src="http://icu-project.org/tzdata/2006a/be/zoneinfo.res" />
|
|
|
|
<copy todir="${tzu.test.dir}" file="${tzu.bin.dir}/icu4j.jar" />
|
|
|
|
|
|
|
|
<echo>Running ICUTZU in Discovery Mode ...</echo>
|
|
|
|
<exec dir="${tzu.bin.dir}" executable="${java.home}/bin/java">
|
|
|
|
<arg value="-cp" />
|
|
|
|
<arg path="${tzu.bin.dir}/${jar.file};${tzu.bin.dir}/${tzu.jar.file}" />
|
|
|
|
<arg value="-Dnogui=true" />
|
|
|
|
<arg value="-Ddiscoveronly=true" />
|
|
|
|
<arg value="-Dsilentpatch=true" />
|
|
|
|
<arg value="-Doffline=true" />
|
|
|
|
<arg value="com.ibm.icu.dev.tool.tzu.ICUTZUMain" />
|
|
|
|
<arg file="${tzu.bin.dir}" />
|
|
|
|
<arg value="DirectorySearch.txt" />
|
|
|
|
<arg value="ICUList.txt" />
|
|
|
|
<arg value="zoneinfo.res" />
|
|
|
|
<arg value="Temp" />
|
|
|
|
<arg value="icu.gif" />
|
|
|
|
</exec>
|
|
|
|
|
|
|
|
<echo>Running ICUTZU in Patch Mode ...</echo>
|
|
|
|
<exec dir="${tzu.bin.dir}" executable="${java.home}/bin/java">
|
|
|
|
<arg value="-cp" />
|
|
|
|
<arg path="${tzu.bin.dir}/${jar.file};${tzu.bin.dir}/${tzu.jar.file}" />
|
|
|
|
<arg value="-Dnogui=true" />
|
|
|
|
<arg value="-Ddiscoveronly=false" />
|
|
|
|
<arg value="-Dsilentpatch=true" />
|
|
|
|
<arg value="-Doffline=true" />
|
|
|
|
<arg value="com.ibm.icu.dev.tool.tzu.ICUTZUMain" />
|
|
|
|
<arg file="${tzu.bin.dir}" />
|
|
|
|
<arg value="DirectorySearch.txt" />
|
|
|
|
<arg value="ICUList.txt" />
|
|
|
|
<arg value="zoneinfo.res" />
|
|
|
|
<arg value="Temp" />
|
|
|
|
<arg value="icu.gif" />
|
|
|
|
</exec>
|
|
|
|
|
|
|
|
<echo>Comparing results ...</echo>
|
|
|
|
<unjar src="${tzu.test.dir}/${jar.file}" dest="${tzu.test.dir}">
|
|
|
|
<patternset>
|
|
|
|
<include name="**/zoneinfo.res" />
|
|
|
|
</patternset>
|
|
|
|
</unjar>
|
|
|
|
<copy todir="${tzu.test.dir}" file="${tzu.test.dir}/${icu4j.data.path}/zoneinfo.res" />
|
|
|
|
<condition property="tzu.zoneinfo.match">
|
|
|
|
<filesmatch file1="${tzu.bin.dir}/zoneinfo.res" file2="${tzu.test.dir}/zoneinfo.res" />
|
|
|
|
</condition>
|
|
|
|
|
|
|
|
<fail unless="tzu.zoneinfo.match">ICUTZU test failed. ${tzu.bin.dir}/zoneinfo.res does not match ${tzu.test.dir}/zoneinfo.res</fail>
|
|
|
|
|
|
|
|
<echo>Cleaning up ...</echo>
|
2007-12-21 01:29:52 +00:00
|
|
|
<move todir="${tzu.bin.dir}">
|
2007-04-20 21:02:49 +00:00
|
|
|
<fileset file="${tzu.temp.dir}/DirectorySearch.txt" />
|
|
|
|
<fileset file="${tzu.temp.dir}/zoneinfo.res" />
|
2007-12-21 01:29:52 +00:00
|
|
|
</move>
|
|
|
|
<delete includeEmptyDirs="true">
|
|
|
|
<fileset file="${tzu.temp.dir}" />
|
|
|
|
<fileset dir="${tzu.test.dir}" />
|
|
|
|
</delete>
|
|
|
|
|
2007-04-20 21:02:49 +00:00
|
|
|
<echo>ICUTZU test successful.</echo>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="icutzusrc-dist" depends="init" description="ICUTZU source distributable zip">
|
|
|
|
<zip zipfile="${basedir}/${tzu.src.zip.file}" basedir="${basedir}" includes="${src.dir}/${tzu.src.path}/**/*" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="icutzubin-dist" depends="icutzujar" description="ICUTZU binaries distributable zip">
|
|
|
|
<zip zipfile="${basedir}/${tzu.bin.zip.file}" basedir="${tzu.bin.dir}" includes="*" />
|
|
|
|
</target>
|
2000-03-10 01:33:53 +00:00
|
|
|
</project>
|