Re: [ANN] xml-commons-which: new Which utility to replace EnvironmentCheck

2001-12-22 Thread Sudipta Sarkar

I agree with what Kevin says.


>From: [EMAIL PROTECTED] (Kevin A. Burton)
>Reply-To: "Jakarta General List" <[EMAIL PROTECTED]>
>To: "Jakarta General List" <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED]
>Subject: Re: [ANN] xml-commons-which: new Which utility to replace 
>EnvironmentCheck
>Date: 22 Dec 2001 00:33:04 -0800
>
>-BEGIN PGP SIGNED MESSAGE-
>Hash: SHA1
>
>[EMAIL PROTECTED] writes:
>
> > 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.
>
>
>Just a humble suggestion.  Under *NIX the 'which' command is used for 
>finding
>the binary that would be executed if you were to execute the given command.
>
>Ex:
>
>%shell%> which ls
>/bin/ls
>
>I would suggest renaming this to something more descriptive, maybe 
>WhichEnv.  I
>do realize it is in a package though.  I usually re-alias my java commands 
>to
>become the classname minus the package, therefore which and Which would get
>confusing :)
>
>Kevin
>
>- --
>Kevin A. Burton ( [EMAIL PROTECTED], [EMAIL PROTECTED], 
>[EMAIL PROTECTED] )
>  Location - San Francisco, CA, Cell - 415.595.9965
> Jabber - [EMAIL PROTECTED],  Web - http://relativity.yi.org/
>
>Those willing to give up a little liberty for a little security deserve
>neither security nor liberty.  -- Benjamin Franklin
>-BEGIN PGP SIGNATURE-
>Version: GnuPG v1.0.6 (GNU/Linux)
>Comment: Get my public key at: http://relativity.yi.org/pgpkey.txt
>
>iD8DBQE8JEVAAwM6xb2dfE0RAskAAJ4yx9Jk/EkbwT8D+0rNnkm9pVOj1ACfb417
>ors4JuOvxim6a/4XvL67wRQ=
>=6+y+
>-END PGP SIGNATURE-
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>




_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




Re: [ANN] xml-commons-which: new Which utility to replace EnvironmentCheck

2001-12-22 Thread Kevin A. Burton

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

[EMAIL PROTECTED] writes:

> 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.


Just a humble suggestion.  Under *NIX the 'which' command is used for finding
the binary that would be executed if you were to execute the given command.

Ex:

%shell%> which ls
/bin/ls

I would suggest renaming this to something more descriptive, maybe WhichEnv.  I
do realize it is in a package though.  I usually re-alias my java commands to
become the classname minus the package, therefore which and Which would get
confusing :)

Kevin

- -- 
Kevin A. Burton ( [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] )
 Location - San Francisco, CA, Cell - 415.595.9965
Jabber - [EMAIL PROTECTED],  Web - http://relativity.yi.org/

Those willing to give up a little liberty for a little security deserve
neither security nor liberty.  -- Benjamin Franklin
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Get my public key at: http://relativity.yi.org/pgpkey.txt

iD8DBQE8JEVAAwM6xb2dfE0RAskAAJ4yx9Jk/EkbwT8D+0rNnkm9pVOj1ACfb417
ors4JuOvxim6a/4XvL67wRQ=
=6+y+
-END PGP SIGNATURE-

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[ANN] xml-commons-which: new Which utility to replace EnvironmentCheck

2001-12-21 Thread shane_curcuru

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  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:   
For additional commands, e-mail: