commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Conrad" <andrewcon...@attbi.com>
Subject RE: [lang] System properties
Date Fri, 23 Aug 2002 09:50:47 GMT
OK, here is a new version of SystemUtils that supports Linux == Unix and
OSX == Mac and OSX == Unix.  

It's a pretty simple AND solution that should be easy to update and
extend.

- Andrew

> -----Original Message-----
> From: scolebourne@btopenworld.com 
> [mailto:scolebourne@btopenworld.com] 
> Sent: Friday, August 23, 2002 5:18 AM
> To: commons-dev@jakarta.apache.org
> Subject: RE: [lang] System properties
> 
> 
> >  from:    Andrew Conrad <andrewconrad@attbi.com>
> > So your saying that potentially there could be a Solaris family 
> > encompassing all Solaris versions, Windows NT family 
> encompassing NT, 
> > 2000, XP?
> 
> I think that demand will come. Is Mac OSX a Mac or a UNIX?
> 
> 
> > Without thinking too hard about it, the only thing I can 
> think of is 
> > to use a byte as the enumeration type then AND them together and 
> > compare. That will allow a boolean method  isOSFamilyLinux and 
> > isOSFamilyUnix to both return true  (and other possible 
> options:  I think I heard OSX ).
> 
> One thing I hate is manipulating bytes with AND and OR 
> operations. It requires me to think too much.
> 
> > What's the reasoning behind wanting to differentiate 
> between Linux and 
> > Unix, but not SunOS and AIX?
> 
> I would have added a Solaris option, but didn't know if 
> Solaris == SunOS or not.
> 
> Stephen
> 
> --
> To unsubscribe, e-mail:   
> <mailto:commons-dev-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <mailto:commons-dev-help@jakarta.apache.org>
> 

Mime
View raw message