I didn't catch that. I also don't like the idea of batch files in [lang], or any commons component really. I'm sure that we can find a way to factor this out -- I'll keep looking.




Stephen Colebourne wrote:
A quick glance shows a reference to a batch file needed for Windows95/98. My
concern is that this may be a complex thing for [lang], although it probably
is useful (I've never needed it)
Stephen


----- Original Message ----- From: "__matthewHawthorne" <[EMAIL PROTECTED]>

I posted something a while back about adding a method or class to access
environment vars.  Henri suggested that I take a look at Ant's solution
to this.

Ant's env var access is obtained through their <execute> task.  This
class has a lot of logic to handle different OS's, and I think that a
refactored version may be a worthwhile addition to lang.

I had my own small class to do this, but I would image that Ant's
version has been more thoroughly tested and bulletproofed.

Here's the link to Ant's Execute class.


http://cvs.apache.org/viewcvs.cgi/ant/src/main/org/apache/tools/ant/taskdefs /Execute.java?rev=1.70&content-type=text/vnd.viewcvs-markup

Any thoughts?  I think this would be very useful -- just about every
project that I've worked on has had to access env vars at some point or
another.  And providing a nice simple way to execute system commands and
grab the output would be cool.



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



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



Reply via email to