1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
|
Practical XML - Providing What The JDK Doesn't
This library is designed to be an easy-to-use wrapper around the XML
support built-in to the JDK. It is based on the idea that the JDK
implementations will live forever and be regularly updated, something
that cannot be said about third-party alternatives.
Licensing and Copyright
This library is released under the Apache 2 license:
http://www.apache.org/licenses/LICENSE-2.0
Copyright is retained by the individual maintainers, for the code
that they have contributed. In the case of patch submissions from
third parties, the patch contributor implicitly assigns copyright
to the maintainer who implements the patch.
Release Numbering
All builds post initial release have a three part revision number:
MAJOR.MINOR.PATCH
MAJOR releases are not required to be backwards compatible with
the previous such release. For example, the 1.0.0 release
has a different package structure than the 0.9.0 release.
It is intended that there will never be a change to the
major release number, although "never" is a long time.
MINOR releases will happen whenever a maintainer decides that
one is needed, typically driven by significant new
functionality and a desire to have the release in a central
repository. Minor releases preserve backwards compatibility:
code written for one minor release will work when linked
with another minor release.
PATCH releases happen whenever a method or class gets added or
changed in a minor way. They will not typically be released
in binary form.
Major and minor releases will be tagged in the Subversion repository,
using the form "rel-X.Y", where X and Y are the major and minor release
numbers. Patch releases may be tagged using the form "rel-X.Y.Z", if the
maintainer decides that it's important to rebuild that particular release
(eg, as a dependency for another application).
Major and minor releases will be available for download from Sourceforge
( http://sourceforge.net/project/showfiles.php?group_id=234884 ), and also
from the Central Maven Repository.
The whole "patch release" idea has caused some controversy. My thought with
these releases is that they're a step above "nightly development build,"
and represent stable functionality. By giving fixed release numbers, your
build tool should call out any possible incompatibilities, such as "your
main project relies on 1.0.15, but your repository contains 1.0.17, why?"
I believe that long-lived "snapshot" builds on the trunk are a bad idea
(that said, if you're making a number of changes and want to check-in
increments, feel free to put "SNAPSHOT" on the revision number; but try
to finish within a day).
As far as tagging goes, I don't think that it's necessary unless you rely
on a particular patch revision. Then go for it. Since Subversion revision
numbers apply to the entire repository, you can always create an tag for
some past point in time. Easiest way to do this is browse the history of
pom.xml.
To clear up one last bit of confusion: the patch number should only be
incremented when the external API has changed. If you add comments, or
tests, or even completely rewrite the internals, the patch number stays
the same.
Dependencies
Practical XML has no dependencies on third-party JARs (eg, commons-lang).
Official releases are compiled with JDK 1.5, to avoid class format errors.
The source uses 1.5 constructs, and there is no intention of providing a
1.4 backport.
Logging
Practical XML does not use any logging whatsoever: I believe that it exists
at a functional level that does not benefit from logging (plus, unless I
wanted to use java.util.logging and annoy people, I'd need to add a third-
party dependency).
That said, parts of the JDK's XML implementation write log messages, and
these may be triggered by Practical XML (you can see an example running
the XPath tests). And you'll find an occasional uncommented println() in
*test* code (if there's ever a println() in mainline code, you have my
permission to find whoever checked it in and slap him).
|