2000-03-10 04:18:06 +00:00
|
|
|
<!--
|
|
|
|
/*
|
|
|
|
*******************************************************************************
|
2001-03-23 19:52:48 +00:00
|
|
|
* Copyright (C) 1997-2001, International Business Machines Corporation and *
|
2000-03-10 04:18:06 +00:00
|
|
|
* others. All Rights Reserved. *
|
|
|
|
*******************************************************************************
|
|
|
|
*
|
|
|
|
* $Source: /xsrl/Nsvn/icu/icu4j/build.xml,v $
|
2001-03-23 19:52:48 +00:00
|
|
|
* $Date: 2001/03/23 19:52:48 $
|
|
|
|
* $Revision: 1.32 $
|
2000-03-10 04:18:06 +00:00
|
|
|
*
|
2000-03-13 19:18:54 +00:00
|
|
|
*******************************************************************************
|
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
|
|
|
|
|
|
|
<project name="ICU4J" default="core" basedir=".">
|
|
|
|
|
2000-04-13 22:52:41 +00:00
|
|
|
<target name="init">
|
2000-04-14 22:59:53 +00:00
|
|
|
<tstamp/>
|
2000-04-13 22:52:41 +00:00
|
|
|
<property name="src.dir" value="src"/>
|
|
|
|
<property name="doc.dir" value="doc"/>
|
|
|
|
<property name="build.dir" value="classes"/>
|
2000-04-14 22:59:53 +00:00
|
|
|
<property name="obsolete.dir" value="build"/>
|
2000-04-14 00:20:03 +00:00
|
|
|
<property name="jar.file" value="icu4j.jar"/>
|
2000-04-27 23:34:06 +00:00
|
|
|
<property name="zipbin.file" value="../icu4jbin${DSTAMP}.zip"/>
|
2000-04-14 22:59:53 +00:00
|
|
|
<property name="zip.file" value="../icu4j${DSTAMP}.zip"/>
|
2000-04-13 22:52:41 +00:00
|
|
|
<property name="classpath" value="${build.dir}"/>
|
|
|
|
<property name="build.compiler" value="classic"/>
|
2000-04-21 00:19:24 +00:00
|
|
|
<property name="richedit.dist.dir" value="richeditDist"/>
|
|
|
|
<property name="richedit.cont.dir" value="richedit"/>
|
|
|
|
<property name="richedit.archive.dir" value="${richedit.dist.dir}/${richedit.cont.dir}"/>
|
|
|
|
<property name="richedit.jar.file" value="${richedit.archive.dir}/richedit.jar"/>
|
2000-04-24 17:14:39 +00:00
|
|
|
<property name="richedit.doc.dir" value="${richedit.archive.dir}/doc"/>
|
2000-04-21 00:19:24 +00:00
|
|
|
<property name="richedit.zip.file" value="${richedit.dist.dir}/richedit.zip"/>
|
|
|
|
<property name="richedit.manifest" value="${richedit.dist.dir}/manifest.stub"/>
|
2000-04-13 22:52:41 +00:00
|
|
|
</target>
|
|
|
|
|
2001-02-21 17:22:02 +00:00
|
|
|
<target name="all" depends="core,tests,tools,demos,jar,docs"/>
|
2000-03-10 01:33:53 +00:00
|
|
|
|
2001-02-28 21:13:33 +00:00
|
|
|
<target name="core" depends="init,coreData">
|
2000-03-10 01:33:53 +00:00
|
|
|
<mkdir dir="${build.dir}"/>
|
2001-01-10 22:12:35 +00:00
|
|
|
<copy file="${src.dir}/com/ibm/text/resources/thai_dict"
|
|
|
|
todir="${build.dir}/com/ibm/text/resources/"/>
|
2001-02-28 21:13:33 +00:00
|
|
|
<javac includes="com/ibm/util/**/*.java,com/ibm/text/**/*.java,com/ibm/math/**/*.java,com/ibm/richtext/**/*.java"
|
2000-04-13 23:08:38 +00:00
|
|
|
excludes="**/CVS/**/*"
|
2000-04-13 22:52:41 +00:00
|
|
|
srcdir="${src.dir}"
|
2000-03-10 01:33:53 +00:00
|
|
|
destdir="${build.dir}"
|
|
|
|
classpath="${classpath}"
|
|
|
|
debug="on" deprecation="off" target="1.2"/>
|
|
|
|
</target>
|
|
|
|
|
2001-02-28 21:13:33 +00:00
|
|
|
<target name="tests" depends="core,testData">
|
2001-02-21 17:22:02 +00:00
|
|
|
<javac includes="com/ibm/test/**/*.java,com/ibm/icu/test/**/*.java"
|
2000-04-13 23:08:38 +00:00
|
|
|
excludes="**/CVS/**/*"
|
2000-03-10 01:33:53 +00:00
|
|
|
srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
classpath="${classpath}"
|
|
|
|
debug="on" deprecation="off" target="1.2"/>
|
|
|
|
</target>
|
|
|
|
|
2001-02-28 21:13:33 +00:00
|
|
|
<target name="demos" depends="core,testData">
|
2000-04-13 22:52:41 +00:00
|
|
|
<javac includes="com/ibm/demo/**/*.java"
|
2000-04-13 23:08:38 +00:00
|
|
|
excludes="**/CVS/**/*"
|
2000-03-10 01:33:53 +00:00
|
|
|
srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
classpath="${classpath}"
|
|
|
|
debug="on" deprecation="off" target="1.2"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="tools" depends="core">
|
2000-04-13 22:52:41 +00:00
|
|
|
<javac includes="com/ibm/tools/**/*.java"
|
2000-04-13 23:08:38 +00:00
|
|
|
excludes="**/CVS/**/*"
|
2000-03-10 01:33:53 +00:00
|
|
|
srcdir="${src.dir}"
|
|
|
|
destdir="${build.dir}"
|
|
|
|
classpath="${classpath}"
|
|
|
|
debug="on" deprecation="off" target="1.2"/>
|
|
|
|
</target>
|
|
|
|
|
2000-04-13 22:52:41 +00:00
|
|
|
<target name="docs" depends="core">
|
2000-03-10 01:33:53 +00:00
|
|
|
<mkdir dir="${doc.dir}"/>
|
2001-03-23 19:31:57 +00:00
|
|
|
<javadoc packagenames="com.ibm.util,com.ibm.text,com.ibm.math,com.ibm.richtext.awtui,com.ibm.richtext.swingui,com.ibm.richtext.textpanel,com.ibm.richtext.styledtext,com.ibm.textlayout.attributes,com.ibm.richtext.print,com.ibm.icu.test.text"
|
2000-04-13 22:52:41 +00:00
|
|
|
sourcepath="${src.dir}"
|
2000-03-10 01:33:53 +00:00
|
|
|
destdir="${doc.dir}"
|
|
|
|
nodeprecatedlist="true"
|
2000-04-25 17:18:28 +00:00
|
|
|
windowtitle="icu4j"
|
|
|
|
doctitle="icu4j"
|
2000-03-10 01:33:53 +00:00
|
|
|
encoding="iso-8859-1"
|
|
|
|
docencoding="iso-8859-1"
|
2000-04-14 01:15:08 +00:00
|
|
|
bottom="<font size=-1>Copyright (c) 1998-2000 IBM Corporation and others.</font>"
|
2000-04-13 22:52:41 +00:00
|
|
|
/>
|
2000-03-10 01:33:53 +00:00
|
|
|
</target>
|
|
|
|
|
2001-02-28 21:13:33 +00:00
|
|
|
<target name ="coreData" depends="init">
|
|
|
|
<copy todir="${build.dir}/com/ibm/text/resources">
|
|
|
|
<fileset dir="${src.dir}/com/ibm/text/resources"
|
2001-03-01 22:44:51 +00:00
|
|
|
includes="Transliterator_*.txt"/>
|
2001-02-28 21:13:33 +00:00
|
|
|
</copy>
|
|
|
|
<copy todir="${build.dir}/com/ibm/text">
|
|
|
|
<fileset dir="${src.dir}/com/ibm/text"
|
|
|
|
includes="unames.dat,uprops.dat"/>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name ="testData" depends="init">
|
2001-01-10 22:12:35 +00:00
|
|
|
<copy file="${src.dir}/com/ibm/data/misc/english.dict"
|
|
|
|
todir="${build.dir}/com/ibm/data/misc/"/>
|
2000-09-22 18:49:24 +00:00
|
|
|
</target>
|
|
|
|
|
2000-03-10 01:33:53 +00:00
|
|
|
<target name="jar" depends="core">
|
2000-04-14 22:59:53 +00:00
|
|
|
<jar jarfile="${jar.file}"
|
2001-02-28 21:13:33 +00:00
|
|
|
includes="com/ibm/util/**/*,com/ibm/text/**/*,com/ibm/math/**/*,com/ibm/richtext/**/*"
|
2000-04-14 22:59:53 +00:00
|
|
|
basedir="${build.dir}"/>
|
|
|
|
</target>
|
|
|
|
|
2000-04-21 00:19:24 +00:00
|
|
|
<target name="richeditJar" depends="core">
|
|
|
|
<jar jarfile="${richedit.jar.file}"
|
|
|
|
includes="com/ibm/richtext/**/*,com/ibm/textlayout/**/*"
|
|
|
|
basedir="${build.dir}"
|
|
|
|
manifest="${richedit.manifest}"/>
|
|
|
|
</target>
|
|
|
|
|
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.
|
|
|
|
-->
|
|
|
|
<target name="richeditDocs" depends="core">
|
|
|
|
<mkdir dir="${richedit.doc.dir}"/>
|
|
|
|
<javadoc packagenames="com.ibm.richtext.awtui,com.ibm.richtext.swingui,com.ibm.richtext.textpanel,com.ibm.richtext.styledtext,com.ibm.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-2000 IBM Corporation and others.</font>"
|
|
|
|
/>
|
|
|
|
</target>
|
2001-02-28 21:13:33 +00:00
|
|
|
|
2000-04-24 17:14:39 +00:00
|
|
|
<target name="richeditZip" depends="richeditJar,richeditDocs">
|
2000-04-21 00:19:24 +00:00
|
|
|
<!--Create a zip archive of the richedit jar and readme -->
|
|
|
|
<zip zipfile="${richedit.zip.file}"
|
|
|
|
basedir="${richedit.dist.dir}"
|
|
|
|
includes="${richedit.cont.dir}/**/*"/>
|
|
|
|
</target>
|
|
|
|
|
2001-02-21 17:22:02 +00:00
|
|
|
<target name="zipbin" depends="docs,jar">
|
2000-04-14 22:59:53 +00:00
|
|
|
<!--Create a zip archive of the source, docs, and jar file for
|
|
|
|
distribution. The zip file will be created in the directory above
|
|
|
|
the root ICU4J directory.-->
|
2000-04-27 23:34:06 +00:00
|
|
|
<zip zipfile="${zipbin.file}"
|
2000-04-14 22:59:53 +00:00
|
|
|
basedir="."
|
2000-06-06 23:25:08 +00:00
|
|
|
excludes="${richedit.dist.dir},test_*,${src.dir}/data/unicode/*-*.txt,${obsolete.dir}/**,**/*~,${src.dir}/**/*.class,${build.dir}/**,**/CVS/**/*"/>
|
2000-04-14 22:59:53 +00:00
|
|
|
</target>
|
|
|
|
|
2001-01-10 22:12:35 +00:00
|
|
|
<target name="zip" depends="init">
|
2000-04-14 22:59:53 +00:00
|
|
|
<!--Create a zip archive of just the source for distribution. The
|
|
|
|
zip file will be created in the directory above the root ICU4J
|
2000-04-27 23:34:06 +00:00
|
|
|
directory. The exclude pattern ${src.dir}/data/unicode/*-*.txt
|
|
|
|
eliminates old archive copies like SpecialCasing-2.txt and
|
|
|
|
UnicodeData-2.1.8.txt -->
|
|
|
|
<zip zipfile="${zip.file}"
|
2000-04-14 22:59:53 +00:00
|
|
|
basedir="."
|
2000-06-06 23:25:08 +00:00
|
|
|
excludes="${richedit.dist.dir},test_*,${src.dir}/data/unicode/*-*.txt,${obsolete.dir}/**,**/*~,${src.dir}/**/*.class,${build.dir}/**,**/CVS/**/*,${doc.dir}/**,${jar.file}"/>
|
2000-03-10 01:33:53 +00:00
|
|
|
</target>
|
|
|
|
|
2001-01-10 22:12:35 +00:00
|
|
|
<target name="clean" depends="init">
|
|
|
|
<delete dir="${build.dir}"/>
|
|
|
|
<delete dir="${doc.dir}"/>
|
2000-04-14 00:20:03 +00:00
|
|
|
<delete file="${jar.file}"/>
|
2000-03-10 01:33:53 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|