Just a quick announcement of a new tool: org.apache.env.Which, in the
xml-commons project.

Which is a 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 product.

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);

Other notes:
-- If some kindly soul wanted to create an Ant task <which projects=""
options=""/> that would be lovely...

-- Submissions of extra or upgraded WhichFoo classes welcome.

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

-- The xml-commons project does not have an 'official' distribution yet;
feel free to get the latest from CVS, or perhaps we can get Sam to put the
outputs of the Gump runs somewhere useful.  (This will, of course, be much
simpler once we have a web page for the xml-commons project...)

-- Already in Gump, and xml-commons-which has very few dependencies so it's
suitable for use in your Gump projects without having to worry about
dependency messes.
http://jakarta.apache.org/builds/gump/latest/xml-commons-which.html

 - Shane



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to