xml-commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shane_curc...@us.ibm.com
Subject xml-commons-which: new Which utility to replace EnvironmentCheck; Gump update request
Date Tue, 11 Dec 2001 17:57:11 GMT
I've gone ahead and 'bent' the new code rule for xml-commons and just
checked this new 'Which' environment checking utility in without asking.
But it's so blindingly useful, and I already know that the
org.apache.xalan.xslt.EnvironmentCheck utility that this new
org.apache.env.Which utility replaces is *already* being used frequently by
Xalan as well as in another project's build file, so...

Unless someone here complains, I'll send a note to general@xml tomorrow or
so (once this gets into Gump) and then to general@jakarta later on.  I'm
hoping people will like it, and that someone will stick an optional task
<which....> into Ant someday.

Sam - Could you double-check my diff at the end of this email and patch
Gump when you have a chance?  Since xml-commons-which has very few
dependencies, it should be pretty stable if people start using it in their
build scripts.

General environment checking and version finding service.

Which is the command line interface to the org.apache.env
 package.  Simply put, it provides a simplistic
 check of a user's actual environment for debugging and
 product support purposes by detecting the specific versions
 of commonly installed classes in the environment.
Which and related service classes provide a framework for
 looking for version information and passing it around in hashtables.
Users can plug in their own implementations of
 WhichProject classes to get custom version info about any
One important usage note: you must call Which (or subclasses)
 in the environment that you wish to check.  I.e. if you
 have a problem with a command line tool, then call Which from
 the same command line environment.  If you have a problem with a
 servlet, you must call Which.blah() from your servlet as
 it's installed in an actual container.

Usage-command line:
 java org.apache.env.Which [project;WhichProject] [-options]

Usage-from program:
 int status = org.apache.env.Which.which(hash, projects, options);

Original credit to org.apache.xalan.xslt.EnvironmentCheck

- Shane
cvs -q diff xml-commons.xml (in directory E:
Index: xml-commons.xml
RCS file:
retrieving revision 1.2
diff -r1.2 xml-commons.xml
<     XML commons
>     XML commons($Revision:$) externally defined standards - DOM,SAX,JAXP;
plus xml utilities
>   </project>
>   <project name="xml-commons-which">
>     <ant basedir="java" buildfile="which.xml" target="jar"/>
>     <depend project="jaxp"/>
>     <depend project="bootstrap-ant"/>
>     <home nested="build"/>
>     <jar name="which.jar"/>

View raw message