ICU-6994 ICU4J build targets to generate *-src.jar which contain only .java source files as well as ICU4J source package archive in .tgz. Also some updates in release target: new target 'release' to build all download files with version string. Old target 'releaseJar' was deleted.
X-SVN-Rev: 28174
This commit is contained in:
parent
1826002e52
commit
014a18e855
@ -4,3 +4,4 @@
|
||||
#*******************************************************************************
|
||||
api.report.version = 451
|
||||
api.report.prev.version = 44
|
||||
release.file.ver = 4_5_1
|
||||
|
183
icu4j/build.xml
183
icu4j/build.xml
@ -10,17 +10,34 @@
|
||||
<property name="shared.dir" value="main/shared"/>
|
||||
<import file="${shared.dir}/build/common-targets.xml"/>
|
||||
|
||||
<property environment="env"/>
|
||||
|
||||
<!-- icu4j binaries -->
|
||||
<property name="icu4j.jar.file" value="icu4j.jar"/>
|
||||
<property name="icu4jtests.jar.file" value="icu4jtests.jar"/>
|
||||
<property name="icu4j-charsets.jar.file" value="icu4j-charsets.jar"/>
|
||||
<property name="icu4j-localespi.jar.file" value="icu4j-localespi.jar"/>
|
||||
<property name="icu4jdocs.jar.file" value="icu4jdocs.jar"/>
|
||||
<property name="icu4jsrc.jar.file" value="icu4jsrc.jar"/>
|
||||
|
||||
<property name="icu4jdemos.jar.file" value="icu4jdemos.jar"/>
|
||||
|
||||
<property name="doc.dir" value="doc"/>
|
||||
<!-- icu4j release files -->
|
||||
<property name="icu4j.jar.versioned.file" value="icu4j-${release.file.ver}.jar"/>
|
||||
<property name="icu4j-charsets.jar.versioned.file" value="icu4j-charsets-${release.file.ver}.jar"/>
|
||||
<property name="icu4j-localespi.jar.versioned.file" value="icu4j-localespi-${release.file.ver}.jar"/>
|
||||
|
||||
<property environment="env"/>
|
||||
<property name="icu4j-src.jar.versioned.file" value="icu4j-${release.file.ver}-src.jar"/>
|
||||
<property name="icu4j-charsets-src.jar.versioned.file" value="icu4j-charsets-${release.file.ver}-src.jar"/>
|
||||
<property name="icu4j-localespi-src.jar.versioned.file" value="icu4j-localespi-${release.file.ver}-src.jar"/>
|
||||
|
||||
<property name="icu4jsrc.zip.file" value="icu4j-${release.file.ver}.zip"/>
|
||||
<property name="icu4jsrc.tgz.file" value="icu4j-${release.file.ver}.tgz"/>
|
||||
|
||||
<property name="icu4jdocs.jar.file" value="icu4j-${release.file.ver}-docs.jar"/>
|
||||
|
||||
<!-- directories -->
|
||||
<property name="release.dir" value="release"/>
|
||||
<property name="doc.dir" value="doc"/>
|
||||
<property name="release.dir" value="release"/>
|
||||
|
||||
<!-- Java version check -->
|
||||
<condition property="is.java6.plus">
|
||||
@ -78,11 +95,12 @@
|
||||
<ant dir="${icu4j.tools.dir}" target="clean" inheritAll="false"/>
|
||||
<ant dir="${icu4j.demos.dir}" target="clean" inheritAll="false"/>
|
||||
|
||||
<!-- delete all .jar files in icu4j root directory -->
|
||||
<!-- delete all .jar files root directory -->
|
||||
<delete>
|
||||
<fileset dir="." includes="icu4j*.jar"/>
|
||||
</delete>
|
||||
|
||||
<delete dir="${release.dir}"/>
|
||||
<delete dir="${doc.dir}"/>
|
||||
<delete dir="${out.dir}"/>
|
||||
<delete dir="${module.dir}"/>
|
||||
@ -92,7 +110,7 @@
|
||||
<target name="all" depends="info, main, tests, build-tools, tools, demos, jar, docs" description="Build all primary targets"/>
|
||||
<target name="main" depends="info, core, collate, charset, currdata, langdata, regiondata, translit, localespi" description="Build ICU4J runtime library classes"/>
|
||||
<target name="tests" depends="info, core-tests, charset-tests, collate-tests, packaging-tests, translit-tests, localespi-tests" description="Build ICU4J test classes"/>
|
||||
<target name="releaseJar" depends="info, jar, jarDocs, jarSrc" description="Build all jar files for distribution"/>
|
||||
<target name="release" depends="info, releaseBinaries, releaseSrcJars, releaseDocs, releaseSourceArchiveTgz" description="Build all ICU4J release files for distribution"/>
|
||||
|
||||
<target name="secure" depends="icu4jJar" description="(Deprecated)Build ICU4J API and test classes for running the ICU4J test suite with Java security manager enabled"/>
|
||||
|
||||
@ -334,28 +352,145 @@
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<target name="jarDocs" depends="docs" description="Build ICU4J API doc jar file">
|
||||
<jar jarfile="${icu4jdocs.jar.file}" compress="true" basedir="${doc.dir}"/>
|
||||
</target>
|
||||
|
||||
<target name="jarSrc" description="Build ICU4J source jar file">
|
||||
<jar jarfile="${icu4jsrc.jar.file}" compress="true">
|
||||
<fileset dir=".">
|
||||
<include name="main/**/*"/>
|
||||
<include name="demos/**/*"/>
|
||||
<include name="tools/**/*"/>
|
||||
<include name="*.html"/>
|
||||
<include name="*.xml"/>
|
||||
<include name="*.properties"/>
|
||||
<exclude name="**/out/**/*"/>
|
||||
</fileset>
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<target name="jarDemos" depends="demos" description="Build ICU4J demo jar file">
|
||||
<copy file="${icu4j.demos.jar}" tofile="${icu4jdemos.jar.file}"/>
|
||||
</target>
|
||||
|
||||
|
||||
<!-- release targests -->
|
||||
<target name="releaseBinaries" depends="icu4jJar, charset, localespi" description="Build ICU4J binary files for distribution">
|
||||
<mkdir dir="${release.dir}"/>
|
||||
<copy file="${icu4j.jar.file}" tofile="${release.dir}/${icu4j.jar.versioned.file}"/>
|
||||
<copy file="${icu4j.charset.jar}" tofile="${release.dir}/${icu4j-charsets.jar.versioned.file}"/>
|
||||
<copy file="${icu4j.localespi.jar}" tofile="${release.dir}/${icu4j-localespi.jar.versioned.file}"/>
|
||||
</target>
|
||||
|
||||
<target name="releaseSrcJars" description="Build ICU4J src jar files for distribution">
|
||||
<!-- icu4j src-jar -->
|
||||
<mkdir dir="${out.dir}"/>
|
||||
<copy file="${icu4j.core.dir}/manifest.stub" todir="${out.dir}">
|
||||
<filterset>
|
||||
<filter token="SPECVERSION" value="${jar.spec.version}"/>
|
||||
<filter token="IMPLVERSION" value="${jar.impl.version}"/>
|
||||
<filter token="COPYRIGHT" value="${jar.copyright.info}"/>
|
||||
</filterset>
|
||||
</copy>
|
||||
|
||||
<mkdir dir="${release.dir}"/>
|
||||
<jar jarfile="${release.dir}/${icu4j-src.jar.versioned.file}"
|
||||
compress="true"
|
||||
manifest="${out.dir}/manifest.stub">
|
||||
<fileset dir="${icu4j.core.dir}/${src.dir}" includes="**/*.java"/>
|
||||
<fileset dir="${icu4j.collate.dir}/${src.dir}" includes="**/*.java"/>
|
||||
<fileset dir="${icu4j.currdata.dir}/${src.dir}" includes="**/*.java"/>
|
||||
<fileset dir="${icu4j.langdata.dir}/${src.dir}" includes="**/*.java"/>
|
||||
<fileset dir="${icu4j.regiondata.dir}/${src.dir}" includes="**/*.java"/>
|
||||
<fileset dir="${icu4j.translit.dir}/${src.dir}" includes="**/*.java"/>
|
||||
<fileset dir="${shared.dir}/licenses">
|
||||
<include name="license.html"/>
|
||||
<include name="unicode-license.txt"/>
|
||||
</fileset>
|
||||
</jar>
|
||||
|
||||
<!-- charset/localespi src-jar -->
|
||||
<ant dir="${icu4j.charset.dir}" target="src-jar" inheritAll="false"/>
|
||||
<ant dir="${icu4j.localespi.dir}" target="src-jar" inheritAll="false"/>
|
||||
|
||||
<copy file="${icu4j.charset.dir}/${out.dir}/lib/icu4j-charset-src.jar" tofile="${release.dir}/${icu4j-charsets-src.jar.versioned.file}"/>
|
||||
<copy file="${icu4j.localespi.dir}/${out.dir}/lib/icu4j-localespi-src.jar" tofile="${release.dir}/${icu4j-localespi-src.jar.versioned.file}"/>
|
||||
</target>
|
||||
|
||||
|
||||
<target name="releaseDocs" depends="docs" description="Build ICU4J API reference doc jar file for distribution">
|
||||
<mkdir dir="${release.dir}"/>
|
||||
<jar jarfile="${release.dir}/${icu4jdocs.jar.file}" compress="true" basedir="${doc.dir}"/>
|
||||
</target>
|
||||
|
||||
<property name="src.release.wrk.dir" value="${out.dir}/tmpsrc"/>
|
||||
|
||||
<target name="releaseSourceArchiveZip" description="Build ICU4J source release archive (.zip)">
|
||||
<delete dir="${src.release.wrk.dir}"/>
|
||||
<delete file="${icu4jsrc.zip.file}"/>
|
||||
|
||||
<mkdir dir="${src.release.wrk.dir}"/>
|
||||
|
||||
<fixcrlf srcdir="."
|
||||
destdir="${src.release.wrk.dir}"
|
||||
encoding="UTF-8"
|
||||
eol="crlf">
|
||||
<include name="main/**/*"/>
|
||||
<include name="demos/**/*"/>
|
||||
<include name="tools/**/*"/>
|
||||
<include name="*.html"/>
|
||||
<include name="*.xml"/>
|
||||
<include name="*.properties"/>
|
||||
<exclude name="**/out/**/*"/>
|
||||
<exclude name="**/*.jar"/>
|
||||
<exclude name="main/tests/core/src/com/ibm/icu/dev/data/rbbi/english.dict"/>
|
||||
<exclude name="main/tests/core/src/com/ibm/icu/dev/test/serializable/data/**/*.dat"/>
|
||||
<exclude name="main/tests/core/src/com/ibm/icu/dev/test/util/Trie2Test.*.tri2"/>
|
||||
<exclude name="tools/build/icu4j*.api*.gz"/>
|
||||
</fixcrlf>
|
||||
|
||||
<mkdir dir="${release.dir}"/>
|
||||
<zip destfile="${release.dir}/${icu4jsrc.zip.file}">
|
||||
<fileset dir="${src.release.wrk.dir}" includes="**/*"/>
|
||||
<fileset dir="${basedir}">
|
||||
<include name="main/shared/data/*.jar"/>
|
||||
<include name="main/tests/core/src/com/ibm/icu/dev/data/rbbi/english.dict"/>
|
||||
<include name="main/tests/core/src/com/ibm/icu/dev/test/serializable/data/**/*.dat"/>
|
||||
<include name="main/tests/core/src/com/ibm/icu/dev/test/util/Trie2Test.*.tri2"/>
|
||||
<include name="tools/build/icu4j*.api*.gz"/>
|
||||
</fileset>
|
||||
</zip>
|
||||
|
||||
<delete dir="${src.release.wrk.dir}"/>
|
||||
</target>
|
||||
|
||||
<target name="releaseSourceArchiveTgz" description="Build ICU4J source release archive (.tgz)">
|
||||
<delete dir="${src.release.wrk.dir}"/>
|
||||
<delete file="${icu4jsrc.tgz.file}"/>
|
||||
|
||||
<mkdir dir="${src.release.wrk.dir}"/>
|
||||
|
||||
<fixcrlf srcdir="."
|
||||
destdir="${src.release.wrk.dir}"
|
||||
encoding="UTF-8"
|
||||
eol="lf">
|
||||
<include name="main/**/*"/>
|
||||
<include name="demos/**/*"/>
|
||||
<include name="tools/**/*"/>
|
||||
<include name="*.html"/>
|
||||
<include name="*.xml"/>
|
||||
<include name="*.properties"/>
|
||||
<exclude name="**/out/**/*"/>
|
||||
<exclude name="**/*.jar"/>
|
||||
<exclude name="main/tests/core/src/com/ibm/icu/dev/data/rbbi/english.dict"/>
|
||||
<exclude name="main/tests/core/src/com/ibm/icu/dev/test/serializable/data/**/*.dat"/>
|
||||
<exclude name="main/tests/core/src/com/ibm/icu/dev/test/util/Trie2Test.*.tri2"/>
|
||||
<exclude name="tools/build/icu4j*.api*.gz"/>
|
||||
</fixcrlf>
|
||||
|
||||
<property name="icu4jsrc.tar" value="${out.dir}/icu4jsrc.tar"/>
|
||||
|
||||
<tar destfile="${icu4jsrc.tar}" longfile="gnu">
|
||||
<fileset dir="${src.release.wrk.dir}" includes="**/*"/>
|
||||
<fileset dir="${basedir}">
|
||||
<include name="main/shared/data/*.jar"/>
|
||||
<include name="main/tests/core/src/com/ibm/icu/dev/data/rbbi/english.dict"/>
|
||||
<include name="main/tests/core/src/com/ibm/icu/dev/test/serializable/data/**/*.dat"/>
|
||||
<include name="main/tests/core/src/com/ibm/icu/dev/test/util/Trie2Test.*.tri2"/>
|
||||
<include name="tools/build/icu4j*.api*.gz"/>
|
||||
</fileset>
|
||||
</tar>
|
||||
|
||||
<mkdir dir="${release.dir}"/>
|
||||
<gzip destfile="${release.dir}/${icu4jsrc.tgz.file}" src="${icu4jsrc.tar}"/>
|
||||
|
||||
<delete dir="${src.release.wrk.dir}"/>
|
||||
<delete file="${icu4jsrc.tar}"/>
|
||||
</target>
|
||||
|
||||
<!-- compile targets -->
|
||||
<target name="core" description="Build core classes">
|
||||
<ant dir="${icu4j.core.dir}" inheritAll="false"/>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!--
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
-->
|
||||
@ -12,9 +12,10 @@
|
||||
<path id="javac.classpathref">
|
||||
<path refid="javac.classpathref.${ant.project.name}"/>
|
||||
</path>
|
||||
<property name="jar.file" value="${icu4j.demos.jar}"/>
|
||||
<property name="jar.name" value="icu4j-${ant.project.name}.jar"/>
|
||||
<property name="src.jar.name" value="icu4j-${ant.project.name}-src.jar"/>
|
||||
|
||||
<target name="build" depends="compile, copy, jar" description="Build the project"/>
|
||||
<target name="build" depends="compile, copy, jar, src-jar" description="Build the project"/>
|
||||
|
||||
<target name="build-all" depends="@build-all" description="Build the project including all dependencies"/>
|
||||
|
||||
@ -26,4 +27,5 @@
|
||||
|
||||
<target name="jar" depends="compile, copy, @jar" description="Create the project's jar file"/>
|
||||
|
||||
<target name="src-jar" depends="@src-jar" description="Create the proeject's source jar file"/>
|
||||
</project>
|
@ -1,6 +1,6 @@
|
||||
<!--
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
-->
|
||||
@ -12,9 +12,10 @@
|
||||
<path id="javac.classpathref">
|
||||
<path refid="javac.classpathref.${ant.project.name}"/>
|
||||
</path>
|
||||
<property name="jar.file" value="${icu4j.charset.jar}"/>
|
||||
<property name="jar.name" value="icu4j-${ant.project.name}.jar"/>
|
||||
<property name="src.jar.name" value="icu4j-${ant.project.name}-src.jar"/>
|
||||
|
||||
<target name="build" depends="compile, copy, jar" description="Build the project"/>
|
||||
<target name="build" depends="compile, copy, jar, src-jar" description="Build the project"/>
|
||||
|
||||
<target name="build-all" depends="@build-all" description="Build the project including all dependencies"/>
|
||||
|
||||
@ -26,6 +27,8 @@
|
||||
|
||||
<target name="jar" depends="compile, copy, @jar" description="Create the project's jar file"/>
|
||||
|
||||
<target name="src-jar" depends="@src-jar" description="Create the proeject's source jar file"/>
|
||||
|
||||
<target name="copy-data" description="Extract pre-built ICU core data files and copy them to the project's binary directory">
|
||||
<unjar src="${icu4j.data.jar}" dest="${bin.dir}">
|
||||
<patternset>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!--
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
-->
|
||||
@ -12,9 +12,10 @@
|
||||
<path id="javac.classpathref">
|
||||
<path refid="javac.classpathref.${ant.project.name}"/>
|
||||
</path>
|
||||
<property name="jar.file" value="${icu4j.collate.jar}"/>
|
||||
<property name="jar.name" value="icu4j-${ant.project.name}.jar"/>
|
||||
<property name="src.jar.name" value="icu4j-${ant.project.name}-src.jar"/>
|
||||
|
||||
<target name="build" depends="compile, copy, jar" description="Build the project"/>
|
||||
<target name="build" depends="compile, copy, jar, src-jar" description="Build the project"/>
|
||||
|
||||
<target name="build-all" depends="@build-all" description="Build the project including all dependencies"/>
|
||||
|
||||
@ -26,6 +27,8 @@
|
||||
|
||||
<target name="jar" depends="compile, copy, @jar" description="Create the project's jar file"/>
|
||||
|
||||
<target name="src-jar" depends="@src-jar" description="Create the proeject's source jar file"/>
|
||||
|
||||
<target name="copy-data" description="Extract pre-built ICU collation data files and copy them to the project's binary directory">
|
||||
<unjar src="${icu4j.data.jar}" dest="${bin.dir}">
|
||||
<patternset includes="**/coll/*"/>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!--
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
-->
|
||||
@ -12,9 +12,10 @@
|
||||
<path id="javac.classpathref">
|
||||
<path refid="javac.classpathref.${ant.project.name}"/>
|
||||
</path>
|
||||
<property name="jar.file" value="${icu4j.core.jar}"/>
|
||||
<property name="jar.name" value="icu4j-${ant.project.name}.jar"/>
|
||||
<property name="src.jar.name" value="icu4j-${ant.project.name}-src.jar"/>
|
||||
|
||||
<target name="build" depends="compile, copy, jar" description="Build the project"/>
|
||||
<target name="build" depends="compile, copy, jar, src-jar" description="Build the project"/>
|
||||
|
||||
<target name="build-all" depends="@build-all" description="Build the project including all dependencies"/>
|
||||
|
||||
@ -26,6 +27,8 @@
|
||||
|
||||
<target name="jar" depends="compile, copy, @jar" description="Create the project's jar file"/>
|
||||
|
||||
<target name="src-jar" depends="@src-jar" description="Create the proeject's source jar file"/>
|
||||
|
||||
<target name="copy-data" description="Extract pre-built ICU core data files and copy them to the project's binary directory">
|
||||
<unjar src="${icu4j.data.jar}" dest="${bin.dir}">
|
||||
<patternset>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!--
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
-->
|
||||
@ -12,9 +12,10 @@
|
||||
<path id="javac.classpathref">
|
||||
<path refid="javac.classpathref.${ant.project.name}"/>
|
||||
</path>
|
||||
<property name="jar.file" value="${icu4j.currdata.jar}"/>
|
||||
<property name="jar.name" value="icu4j-${ant.project.name}.jar"/>
|
||||
<property name="src.jar.name" value="icu4j-${ant.project.name}-src.jar"/>
|
||||
|
||||
<target name="build" depends="compile, copy, jar" description="Build the project"/>
|
||||
<target name="build" depends="compile, copy, jar, src-jar" description="Build the project"/>
|
||||
|
||||
<target name="build-all" depends="@build-all" description="Build the project including all dependencies"/>
|
||||
|
||||
@ -26,6 +27,8 @@
|
||||
|
||||
<target name="jar" depends="compile, copy, @jar" description="Create the project's jar file"/>
|
||||
|
||||
<target name="src-jar" depends="@src-jar" description="Create the proeject's source jar file"/>
|
||||
|
||||
<target name="copy-data" description="Extract pre-built ICU currency data files and copy them to the project's binary directory">
|
||||
<unjar src="${icu4j.data.jar}" dest="${bin.dir}">
|
||||
<patternset includes="**/curr/*"/>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!--
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
-->
|
||||
@ -13,8 +13,10 @@
|
||||
<path refid="javac.classpathref.${ant.project.name}"/>
|
||||
</path>
|
||||
<property name="jar.file" value="${icu4j.langdata.jar}"/>
|
||||
<property name="jar.name" value="icu4j-${ant.project.name}.jar"/>
|
||||
<property name="src.jar.name" value="icu4j-${ant.project.name}-src.jar"/>
|
||||
|
||||
<target name="build" depends="compile, copy, jar" description="Build the project"/>
|
||||
<target name="build" depends="compile, copy, jar, src-jar" description="Build the project"/>
|
||||
|
||||
<target name="build-all" depends="@build-all" description="Build the project including all dependencies"/>
|
||||
|
||||
@ -26,6 +28,8 @@
|
||||
|
||||
<target name="jar" depends="compile, copy, @jar" description="Create the project's jar file"/>
|
||||
|
||||
<target name="src-jar" depends="@src-jar" description="Create the proeject's source jar file"/>
|
||||
|
||||
<target name="copy-data" description="Extract pre-built ICU language data files and copy them to the project's binary directory">
|
||||
<unjar src="${icu4j.data.jar}" dest="${bin.dir}">
|
||||
<patternset includes="**/lang/*"/>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!--
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
-->
|
||||
@ -12,9 +12,10 @@
|
||||
<path id="javac.classpathref">
|
||||
<path refid="javac.classpathref.${ant.project.name}"/>
|
||||
</path>
|
||||
<property name="jar.file" value="${icu4j.localespi.jar}"/>
|
||||
<property name="jar.name" value="icu4j-${ant.project.name}.jar"/>
|
||||
<property name="src.jar.name" value="icu4j-${ant.project.name}-src.jar"/>
|
||||
|
||||
<target name="build" depends="compile, copy, jar" description="Build the project"/>
|
||||
<target name="build" depends="compile, copy, jar, src-jar" description="Build the project"/>
|
||||
|
||||
<target name="build-all" depends="@build-all" description="Build the project including all dependencies"/>
|
||||
|
||||
@ -26,4 +27,5 @@
|
||||
|
||||
<target name="jar" depends="compile, copy, @jar" description="Create the project's jar file"/>
|
||||
|
||||
<target name="src-jar" depends="@src-jar" description="Create the proeject's source jar file"/>
|
||||
</project>
|
@ -1,6 +1,6 @@
|
||||
<!--
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
-->
|
||||
@ -12,9 +12,10 @@
|
||||
<path id="javac.classpathref">
|
||||
<path refid="javac.classpathref.${ant.project.name}"/>
|
||||
</path>
|
||||
<property name="jar.file" value="${icu4j.regiondata.jar}"/>
|
||||
<property name="jar.name" value="icu4j-${ant.project.name}.jar"/>
|
||||
<property name="src.jar.name" value="icu4j-${ant.project.name}-src.jar"/>
|
||||
|
||||
<target name="build" depends="compile, copy, jar" description="Build the project"/>
|
||||
<target name="build" depends="compile, copy, jar, src-jar" description="Build the project"/>
|
||||
|
||||
<target name="build-all" depends="@build-all" description="Build the project including all dependencies"/>
|
||||
|
||||
@ -26,6 +27,8 @@
|
||||
|
||||
<target name="jar" depends="compile, copy, @jar" description="Create the project's jar file"/>
|
||||
|
||||
<target name="src-jar" depends="@src-jar" description="Create the proeject's source jar file"/>
|
||||
|
||||
<target name="copy-data" description="Extract pre-built ICU region data files and copy them to the project's binary directory">
|
||||
<unjar src="${icu4j.data.jar}" dest="${bin.dir}">
|
||||
<patternset includes="**/region/*"/>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!--
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
-->
|
||||
@ -12,9 +12,10 @@
|
||||
<path id="javac.classpathref">
|
||||
<path refid="javac.classpathref.${ant.project.name}"/>
|
||||
</path>
|
||||
<property name="jar.file" value="${icu4j.translit.jar}"/>
|
||||
<property name="jar.name" value="icu4j-${ant.project.name}.jar"/>
|
||||
<property name="src.jar.name" value="icu4j-${ant.project.name}-src.jar"/>
|
||||
|
||||
<target name="build" depends="compile, copy, jar" description="Build the project"/>
|
||||
<target name="build" depends="compile, copy, jar, src-jar" description="Build the project"/>
|
||||
|
||||
<target name="build-all" depends="@build-all" description="Build the project including all dependencies"/>
|
||||
|
||||
@ -26,6 +27,8 @@
|
||||
|
||||
<target name="jar" depends="compile, copy, @jar" description="Create the project's jar file"/>
|
||||
|
||||
<target name="src-jar" depends="@src-jar" description="Create the proeject's source jar file"/>
|
||||
|
||||
<target name="copy-data" description="Extract pre-built ICU transliteration data files and copy them to the project's binary directory">
|
||||
<unjar src="${icu4j.data.jar}" dest="${bin.dir}">
|
||||
<patternset includes="**/translit/*"/>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!--
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
-->
|
||||
@ -8,6 +8,7 @@
|
||||
<dirname property="common-targets.dir" file="${ant.file.common-targets}"/>
|
||||
<property file="${common-targets.dir}/locations.properties"/>
|
||||
<property file="${common-targets.dir}/common.properties"/>
|
||||
<property environment="env"/>
|
||||
|
||||
<!-- common targets -->
|
||||
|
||||
@ -34,7 +35,8 @@
|
||||
classpathref="javac.classpathref"
|
||||
source="${javac.source}"
|
||||
target="${javac.target}"
|
||||
debug="${javac.debug}">
|
||||
debug="${javac.debug}"
|
||||
includeAntRuntime="no">
|
||||
<compilerarg value="${javac.compilerarg}"/>
|
||||
</javac>
|
||||
</target>
|
||||
@ -59,7 +61,7 @@
|
||||
</filterset>
|
||||
</copy>
|
||||
|
||||
<jar jarfile="${jar.file}" manifest="${out.dir}/manifest.stub" compress="true">
|
||||
<jar jarfile="${jar.dir}/${jar.name}" manifest="${out.dir}/manifest.stub" compress="true">
|
||||
<fileset dir="${bin.dir}" includes="**/*"/>
|
||||
<fileset dir="${shared.dir}/licenses">
|
||||
<include name="license.html"/>
|
||||
@ -68,6 +70,26 @@
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<target name="@src-jar">
|
||||
<mkdir dir="${jar.dir}"/>
|
||||
|
||||
<copy file="manifest.stub" todir="${out.dir}">
|
||||
<filterset>
|
||||
<filter token="SPECVERSION" value="${jar.spec.version}"/>
|
||||
<filter token="IMPLVERSION" value="${jar.impl.version}"/>
|
||||
<filter token="COPYRIGHT" value="${jar.copyright.info}"/>
|
||||
</filterset>
|
||||
</copy>
|
||||
|
||||
<jar jarfile="${jar.dir}/${src.jar.name}" manifest="${out.dir}/manifest.stub" compress="true">
|
||||
<fileset dir="${src.dir}" includes="**/*.java"/>
|
||||
<fileset dir="${shared.dir}/licenses">
|
||||
<include name="license.html"/>
|
||||
<include name="unicode-license.txt"/>
|
||||
</fileset>
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<target name="@build-all">
|
||||
<antcall target="_all.${ant.project.name}"/>
|
||||
</target>
|
||||
@ -222,7 +244,9 @@
|
||||
</target>
|
||||
|
||||
<!-- build-tools -->
|
||||
<path id="javac.classpathref.build-tools"/>
|
||||
<path id="javac.classpathref.build-tools">
|
||||
<pathelement location="${env.JAVA_HOME}/lib/tools.jar"/>
|
||||
</path>
|
||||
|
||||
<target name="_all.build-tools">
|
||||
<ant dir="${icu4j.build-tools.dir}" inheritAll="false"/>
|
||||
|
@ -35,7 +35,7 @@ icu4j.testdata.jar = ${shared.dir}/data/testdata.jar
|
||||
|
||||
icu4j.core.jar = ${icu4j.core.dir}/${jar.dir}/icu4j-core.jar
|
||||
icu4j.collate.jar = ${icu4j.collate.dir}/${jar.dir}/icu4j-collate.jar
|
||||
icu4j.charset.jar = ${icu4j.charset.dir}/${jar.dir}/icu4j-charsets.jar
|
||||
icu4j.charset.jar = ${icu4j.charset.dir}/${jar.dir}/icu4j-charset.jar
|
||||
icu4j.currdata.jar = ${icu4j.currdata.dir}/${jar.dir}/icu4j-currdata.jar
|
||||
icu4j.langdata.jar = ${icu4j.langdata.dir}/${jar.dir}/icu4j-langdata.jar
|
||||
icu4j.localespi.jar = ${icu4j.localespi.dir}/${jar.dir}/icu4j-localespi.jar
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!--
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
-->
|
||||
@ -12,9 +12,10 @@
|
||||
<path id="javac.classpathref">
|
||||
<path refid="javac.classpathref.${ant.project.name}"/>
|
||||
</path>
|
||||
<property name="jar.file" value="${icu4j.charset-tests.jar}"/>
|
||||
<property name="jar.name" value="icu4j-${ant.project.name}.jar"/>
|
||||
<property name="src.jar.name" value="icu4j-${ant.project.name}-src.jar"/>
|
||||
|
||||
<target name="build" depends="compile, copy, jar" description="Build the project"/>
|
||||
<target name="build" depends="compile, copy, jar, src-jar" description="Build the project"/>
|
||||
|
||||
<target name="build-all" depends="@build-all" description="Build the project including all dependencies"/>
|
||||
|
||||
@ -26,6 +27,8 @@
|
||||
|
||||
<target name="jar" depends="compile, copy, @jar" description="Create the project's jar file"/>
|
||||
|
||||
<target name="src-jar" depends="@src-jar" description="Create the proeject's source jar file"/>
|
||||
|
||||
<target name="copy-charset-test-data" description="Extract pre-built ICU charset test data files and copy them to the project's binary directory">
|
||||
<unjar src="${icu4j.testdata.jar}" dest="${bin.dir}">
|
||||
<patternset>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!--
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
-->
|
||||
@ -12,9 +12,10 @@
|
||||
<path id="javac.classpathref">
|
||||
<path refid="javac.classpathref.${ant.project.name}"/>
|
||||
</path>
|
||||
<property name="jar.file" value="${icu4j.collate-tests.jar}"/>
|
||||
<property name="jar.name" value="icu4j-${ant.project.name}.jar"/>
|
||||
<property name="src.jar.name" value="icu4j-${ant.project.name}-src.jar"/>
|
||||
|
||||
<target name="build" depends="compile, copy, jar" description="Build the project"/>
|
||||
<target name="build" depends="compile, copy, jar, src-jar" description="Build the project"/>
|
||||
|
||||
<target name="build-all" depends="@build-all" description="Build the project including all dependencies"/>
|
||||
|
||||
@ -26,6 +27,8 @@
|
||||
|
||||
<target name="jar" depends="compile, copy, @jar" description="Create the project's jar file"/>
|
||||
|
||||
<target name="src-jar" depends="@src-jar" description="Create the proeject's source jar file"/>
|
||||
|
||||
<target name="copy-collate-test-data" description="Extract pre-built ICU collation test data files and copy them to the project's binary directory">
|
||||
<unjar src="${icu4j.testdata.jar}" dest="${bin.dir}">
|
||||
<patternset>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!--
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
-->
|
||||
@ -12,9 +12,10 @@
|
||||
<path id="javac.classpathref">
|
||||
<path refid="javac.classpathref.${ant.project.name}"/>
|
||||
</path>
|
||||
<property name="jar.file" value="${icu4j.core-tests.jar}"/>
|
||||
<property name="jar.name" value="icu4j-${ant.project.name}.jar"/>
|
||||
<property name="src.jar.name" value="icu4j-${ant.project.name}-src.jar"/>
|
||||
|
||||
<target name="build" depends="compile, copy, jar" description="Build the project"/>
|
||||
<target name="build" depends="compile, copy, jar, src-jar" description="Build the project"/>
|
||||
|
||||
<target name="build-all" depends="@build-all" description="Build the project including all dependencies"/>
|
||||
|
||||
@ -26,6 +27,8 @@
|
||||
|
||||
<target name="jar" depends="compile, copy, @jar" description="Create the project's jar file"/>
|
||||
|
||||
<target name="src-jar" depends="@src-jar" description="Create the proeject's source jar file"/>
|
||||
|
||||
<target name="copy-test-data" description="Extract pre-built ICU core test data files and copy them to the project's binary directory">
|
||||
<unjar src="${icu4j.testdata.jar}" dest="${bin.dir}">
|
||||
<patternset>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!--
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
-->
|
||||
@ -12,9 +12,10 @@
|
||||
<path id="javac.classpathref">
|
||||
<path refid="javac.classpathref.${ant.project.name}"/>
|
||||
</path>
|
||||
<property name="jar.file" value="${icu4j.test-framework.jar}"/>
|
||||
<property name="jar.name" value="icu4j-${ant.project.name}.jar"/>
|
||||
<property name="src.jar.name" value="icu4j-${ant.project.name}-src.jar"/>
|
||||
|
||||
<target name="build" depends="compile, copy, jar" description="Build the project"/>
|
||||
<target name="build" depends="compile, copy, jar, src-jar" description="Build the project"/>
|
||||
|
||||
<target name="build-all" depends="@build-all" description="Build the project including all dependencies"/>
|
||||
|
||||
@ -26,4 +27,5 @@
|
||||
|
||||
<target name="jar" depends="compile, copy, @jar" description="Create the project's jar file"/>
|
||||
|
||||
<target name="src-jar" depends="@src-jar" description="Create the proeject's source jar file"/>
|
||||
</project>
|
@ -1,6 +1,6 @@
|
||||
<!--
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
-->
|
||||
@ -12,9 +12,10 @@
|
||||
<path id="javac.classpathref">
|
||||
<path refid="javac.classpathref.${ant.project.name}"/>
|
||||
</path>
|
||||
<property name="jar.file" value="${icu4j.localespi-tests.jar}"/>
|
||||
<property name="jar.name" value="icu4j-${ant.project.name}.jar"/>
|
||||
<property name="src.jar.name" value="icu4j-${ant.project.name}-src.jar"/>
|
||||
|
||||
<target name="build" depends="compile, copy, jar" description="Build the project"/>
|
||||
<target name="build" depends="compile, copy, jar, src-jar" description="Build the project"/>
|
||||
|
||||
<target name="build-all" depends="@build-all" description="Build the project including all dependencies"/>
|
||||
|
||||
@ -26,4 +27,5 @@
|
||||
|
||||
<target name="jar" depends="compile, copy, @jar" description="Create the project's jar file"/>
|
||||
|
||||
<target name="src-jar" depends="@src-jar" description="Create the proeject's source jar file"/>
|
||||
</project>
|
@ -1,6 +1,6 @@
|
||||
<!--
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
-->
|
||||
@ -12,9 +12,10 @@
|
||||
<path id="javac.classpathref">
|
||||
<path refid="javac.classpathref.${ant.project.name}"/>
|
||||
</path>
|
||||
<property name="jar.file" value="${icu4j.packaging-tests.jar}"/>
|
||||
<property name="jar.name" value="icu4j-${ant.project.name}.jar"/>
|
||||
<property name="src.jar.name" value="icu4j-${ant.project.name}-src.jar"/>
|
||||
|
||||
<target name="build" depends="compile, copy, jar" description="Build the project"/>
|
||||
<target name="build" depends="compile, copy, jar, src-jar" description="Build the project"/>
|
||||
|
||||
<target name="build-all" depends="@build-all" description="Build the project including all dependencies"/>
|
||||
|
||||
@ -22,10 +23,9 @@
|
||||
|
||||
<target name="compile" depends="@compile" description="Compile java source files"/>
|
||||
|
||||
<target name="copy" depends="@copy, copy-test-data" description="Copy non-java runtime files to the project's binary directory"/>
|
||||
<target name="copy" depends="@copy" description="Copy non-java runtime files to the project's binary directory"/>
|
||||
|
||||
<target name="jar" depends="compile, copy, @jar" description="Create the project's jar file"/>
|
||||
|
||||
<target name="copy-test-data" description="Extract pre-built ICU core test data files and copy them to the project's binary directory"/>
|
||||
|
||||
<target name="src-jar" depends="@src-jar" description="Create the proeject's source jar file"/>
|
||||
</project>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!--
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
-->
|
||||
@ -12,9 +12,10 @@
|
||||
<path id="javac.classpathref">
|
||||
<path refid="javac.classpathref.${ant.project.name}"/>
|
||||
</path>
|
||||
<property name="jar.file" value="${icu4j.translit-tests.jar}"/>
|
||||
<property name="jar.name" value="icu4j-${ant.project.name}.jar"/>
|
||||
<property name="src.jar.name" value="icu4j-${ant.project.name}-src.jar"/>
|
||||
|
||||
<target name="build" depends="compile, copy, jar" description="Build the project"/>
|
||||
<target name="build" depends="compile, copy, jar, src-jar" description="Build the project"/>
|
||||
|
||||
<target name="build-all" depends="@build-all" description="Build the project including all dependencies"/>
|
||||
|
||||
@ -26,6 +27,8 @@
|
||||
|
||||
<target name="jar" depends="compile, copy, @jar" description="Create the project's jar file"/>
|
||||
|
||||
<target name="src-jar" depends="@src-jar" description="Create the proeject's source jar file"/>
|
||||
|
||||
<target name="copy-translit-test-data" description="Extract pre-built ICU collation test data files and copy them to the project's binary directory">
|
||||
<copy todir="${bin.dir}">
|
||||
<fileset dir="${icu4j.translit-tests.dir}/src">
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!--
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
-->
|
||||
@ -12,7 +12,8 @@
|
||||
<path id="javac.classpathref">
|
||||
<path refid="javac.classpathref.${ant.project.name}"/>
|
||||
</path>
|
||||
<property name="jar.file" value="${icu4j.build-tools.jar}"/>
|
||||
<property name="jar.name" value="icu4j-${ant.project.name}.jar"/>
|
||||
<property name="src.jar.name" value="icu4j-${ant.project.name}-src.jar"/>
|
||||
|
||||
<target name="build" depends="compile, copy, jar" description="Build the project"/>
|
||||
|
||||
@ -26,4 +27,5 @@
|
||||
|
||||
<target name="jar" depends="compile, copy, @jar" description="Create the project's jar file"/>
|
||||
|
||||
<target name="src-jar" depends="@src-jar" description="Create the proeject's source jar file"/>
|
||||
</project>
|
@ -1,6 +1,6 @@
|
||||
<!--
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
-->
|
||||
@ -12,9 +12,10 @@
|
||||
<path id="javac.classpathref">
|
||||
<path refid="javac.classpathref.${ant.project.name}"/>
|
||||
</path>
|
||||
<property name="jar.file" value="${icu4j.tools.jar}"/>
|
||||
<property name="jar.name" value="icu4j-${ant.project.name}.jar"/>
|
||||
<property name="src.jar.name" value="icu4j-${ant.project.name}-src.jar"/>
|
||||
|
||||
<target name="build" depends="compile, copy, jar" description="Build the project"/>
|
||||
<target name="build" depends="compile, copy, jar, src-jar" description="Build the project"/>
|
||||
|
||||
<target name="build-all" depends="@build-all" description="Build the project including all dependencies"/>
|
||||
|
||||
@ -26,4 +27,5 @@
|
||||
|
||||
<target name="jar" depends="compile, copy, @jar" description="Create the project's jar file"/>
|
||||
|
||||
<target name="src-jar" depends="@src-jar" description="Create the proeject's source jar file"/>
|
||||
</project>
|
Loading…
Reference in New Issue
Block a user