Added zip and zipsrc targets to build.xml.

X-SVN-Rev: 1132
This commit is contained in:
Alan Liu 2000-04-14 22:59:53 +00:00
parent bff1b2e05c
commit 7ed0a330a8
2 changed files with 44 additions and 5 deletions

View file

@ -6,8 +6,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/build.xml,v $
* $Date: 2000/04/14 01:15:08 $
* $Revision: 1.8 $
* $Date: 2000/04/14 22:59:53 $
* $Revision: 1.9 $
*
*******************************************************************************
* This is the ant build file for ICU4J. See readme.html for more information.
@ -17,10 +17,14 @@
<project name="ICU4J" default="core" basedir=".">
<target name="init">
<tstamp/>
<property name="src.dir" value="src"/>
<property name="doc.dir" value="doc"/>
<property name="build.dir" value="classes"/>
<property name="obsolete.dir" value="build"/>
<property name="jar.file" value="icu4j.jar"/>
<property name="zip.file" value="../icu4j${DSTAMP}.zip"/>
<property name="zipsrc.file" value="../icu4jsrc${DSTAMP}.zip"/>
<property name="classpath" value="${build.dir}"/>
<property name="build.compiler" value="classic"/>
</target>
@ -83,9 +87,27 @@
</target>
<target name="jar" depends="core">
<jar jarfile="${jar.file}"
includes="com/ibm/util/**/*,com/ibm/text/**/*,com/ibm/math/**/*"
basedir="${build.dir}"/>
<jar jarfile="${jar.file}"
includes="com/ibm/util/**/*,com/ibm/text/**/*,com/ibm/math/**/*"
basedir="${build.dir}"/>
</target>
<target name="zip" depends="docs,jar">
<!--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.-->
<zip zipfile="${zip.file}"
basedir="."
excludes="${obsolete.dir}/**,**/*~,${src.dir}/**/*.class,${build.dir}/**,**/CVS/**/*"/>
</target>
<target name="zipsrc">
<!--Create a zip archive of just the source for distribution. The
zip file will be created in the directory above the root ICU4J
directory.-->
<zip zipfile="${zipsrc.file}"
basedir="."
excludes="${obsolete.dir}/**,**/*~,${src.dir}/**/*.class,${build.dir}/**,${doc.dir}/**,${jar.file},**/CVS/**/*"/>
</target>
<target name="clean">

View file

@ -303,6 +303,23 @@ Completed in 19 seconds</pre>
<td>Create a jar archive <strong>icu4j.jar</strong> in the root ICU4J directory containing
the main class files.</td>
</tr>
<tr>
<td>zip</td>
<td>Create a zip archive of the source, docs, and jar file for
distribution, excluding unwanted things like CVS directories and
emacs backup files. The zip file
<strong>icu4jYYYYMMDD.zip</strong> will be created in the
directory <em>above</em> the root ICU4J directory, where YYYYMMDD
is today's date. Any existing file of that name will be
overwritten.</td>
</tr>
<tr>
<td>zipsrc</td>
<td>Like the <strong>zip</strong> target, without the docs and
the jar file. The zip file <strong>icu4jsrcYYYYMMDD.zip</strong>
will be created in the directory <em>above</em> the root ICU4J
directory.</td>
</tr>
<tr>
<td>clean</td>
<td>Remove all built targets, leaving the source.</td>