scuffed-code/icu4j/tools/build
2011-09-29 19:44:32 +00:00
..
.settings ICU-8120 Updated build scripts and eclipse workspace settings to use UTF-8 for java source files. 2010-11-08 15:11:14 +00:00
src/com/ibm/icu/dev/tool ICU-8855 utf-8 file properties for icu4j (with copyright updates). 2011-09-29 19:44:32 +00:00
.classpath ICU-6951 Merging ICU4J new source layout changes to trunk 2009-06-16 05:52:23 +00:00
.project ICU-6951 Merging ICU4J new source layout changes to trunk 2009-06-16 05:52:23 +00:00
build-tools-build.launch ICU-6951 Merging ICU4J new source layout changes to trunk 2009-06-16 05:52:23 +00:00
build.properties ICU-6951 Merging ICU4J new source layout changes to trunk 2009-06-16 05:52:23 +00:00
build.xml 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. 2010-06-11 17:02:51 +00:00
icu4j28.api.gz ICU-6951 Merging ICU4J new source layout changes to trunk 2009-06-16 05:52:23 +00:00
icu4j30.api.gz ICU-6951 Merging ICU4J new source layout changes to trunk 2009-06-16 05:52:23 +00:00
icu4j32.api.gz ICU-6951 Merging ICU4J new source layout changes to trunk 2009-06-16 05:52:23 +00:00
icu4j34.api.gz ICU-6951 Merging ICU4J new source layout changes to trunk 2009-06-16 05:52:23 +00:00
icu4j36.api.gz ICU-6951 Merging ICU4J new source layout changes to trunk 2009-06-16 05:52:23 +00:00
icu4j38.api.gz ICU-6951 Merging ICU4J new source layout changes to trunk 2009-06-16 05:52:23 +00:00
icu4j42.api.gz ICU-7005 Update ICU4J version to 4.3.1 2009-07-07 16:52:40 +00:00
icu4j44.api2.gz ICU-7395 Committing the exact same updates with r27933 (maint-4-4) to the trunk. API comparison with 4.4 and beyond will be done by the new tool code. 2010-04-15 21:40:57 +00:00
icu4j44.api.gz ICU-7585 Added release 4.4 API data. 2010-04-02 15:32:33 +00:00
icu4j46.api2.gz ICU-8020 Added ICU4J 4.6 API data for future API comparison report. 2010-12-10 21:18:41 +00:00
icu4j48.api2.gz ICU-8642 Add the API signature data file generated by release-4-8 into the trunk. 2011-06-13 19:40:00 +00:00
icu4j341.api.gz ICU-6951 Merging ICU4J new source layout changes to trunk 2009-06-16 05:52:23 +00:00
icu4j342.api.gz ICU-6951 Merging ICU4J new source layout changes to trunk 2009-06-16 05:52:23 +00:00
icu4j343.api.gz ICU-6951 Merging ICU4J new source layout changes to trunk 2009-06-16 05:52:23 +00:00
icu4j381.api.gz ICU-6951 Merging ICU4J new source layout changes to trunk 2009-06-16 05:52:23 +00:00
icu4j400.api.gz ICU-6951 Merging ICU4J new source layout changes to trunk 2009-06-16 05:52:23 +00:00
icu4j401.api.gz ICU-6951 Merging ICU4J new source layout changes to trunk 2009-06-16 05:52:23 +00:00
icu4j421.api.gz ICU-7005 Update ICU4J version to 4.3.1 2009-07-07 16:52:40 +00:00
manifest.stub ICU-6951 Merging ICU4J new source layout changes to trunk 2009-06-16 05:52:23 +00:00
README.txt ICU-6951 Merging ICU4J new source layout changes to trunk 2009-06-16 05:52:23 +00:00

Copyright (C) 1996-2004, International Business Machines Corporation and
others. All Rights Reserved.

-------------------------------------------
Using the GatherAPIData and ReportAPI tools
-------------------------------------------

These two tools are used together to generate reports about changes in
supported API between versions of ICU4J.


GatherAPIData 

GatherAPIData uses javadoc to process the ICU4J source files and
generate a file listing information about the public API, including
the ICU4J status (draft, stable, deprecated, obsolete).  It excludes
private API, API marked @internal.  The file is written as text, so it
is human-readable, but it is a bit verbose.  To save space, the file
can be zip'd or gzip'd (using flags passed to the tool), which will
reduce the size by about a factor of 10.

GatherAPIData requires javadoc and is currently based on sun jdk
1.4.2.  JavaDoc is internal (I believe) so you need a reference jvm
from Sun to compile the tool, but it can be run against any 1.4 JDK
(at least, those from Sun).  Instructions in the source file show how
it can be invoked.

GatherAPIData should be passed all the packages that need reporting.
Currently, public api is only in the lang, math, text, and util
subpackages of com.ibm.icu.


ReportAPI 

ReportAPI takes two api files generated by GatherAPIData and reports
on removals, changes, and additions to the API.  It does this by
comparing the API information in the two API files.  When new classes
are added, only the class is listed, not its entire API, and similarly
when a class is deleted.  When APIs with the same name and signature
are changed (visibility, status, inheritance) these changes are listed
by showing the old and new versions of the API.

ReportAPI is not particularly smart, and in particular, does not know
about inherited API.  So for example, moving public API from a class
to a base class is reported as a deletion of API from the original
class, even though the effective API on the original class is
unchanged by this.

ReportAPI also does not know about Java class files, so for example it
cannot be used to compare com.ibm.icu.lang.UCharacter against
java.lang.Character.  This might be provided in a later release.

For these reasons, in general it is best to compare two successive
versions of ICU4J against each other, rather than radically different
versions.  A large number of changes can show up, many of which might
fall into these 'innocuous' categories.

ReportAPI can generate either plain text or html reports.  Since it
only requires the data files and does not rely on JavaDoc, it is more
straightforward to invoke.

ReportAPI uses the file extension to determine how to uncompress the
api data files.  It expects '.zip' for files that have been compressed
using zip, and '.gz' for files that have been compressed using gzip.
The GatherAPIData utility automatically appends these extensions when
compression is used.

API Data Files

API Data files for ICU4J 2.8 and 3.0 are in this directory.  The
intent is to store data files for each release version of ICU4J, to
facilitate comparison using the ReportAPI tool.  Of course, they can
always be regenerated using the GenerateAPI and the sources of a
particular ICU4J release.

The format of the API data file is straightforward.  The first line of
the file is the header, successive lines are the api information.
Each line consists of a number of tokens, each followed by a
semi-colon (incuding the last token on the line).

The header line contains the version number, the 'name' of the version
of ICU4J represented by the file, and a 'base directory' field
(currently not fully implemented).

The following lines contain data generated by the APIInfo class, one
line per class or method.  The tokens are status, visibility, static,
final, synchronized, abstract, type, package, containing class, name,
and 'signature' (which varies by the type of object).  For classes,
the 'signature' is the immediate inheritance of the class.  For
fields, the 'signature' is the type of the field.  For methods, the
'signature' is the function signature. All fields are always present.

For more information, please see APIInfo.java.

-------