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:38:04 GMT
I'm glad someone knows what I mean better than I do...

Thx.

- Andrew

> -----Original Message-----
> From: Adrian Sutton [mailto:adrian.sutton@ephox.com] 
> Sent: Friday, August 23, 2002 5:36 AM
> To: 'Jakarta Commons Developers List'
> Subject: RE: [lang] System properties
> 
> 
> System.getProperty("os.name") == "Mac OS X"
> System.getProperty("java.os") == null
> 
> Hope that helps.  There should be a knowledge base article at 
> Apple.com somewhere on the best way to detect if you're 
> running on OS X too.
> 
> Adrian Sutton, Software Engineer
> Ephox Corporation
> www.ephox.com
> 
> 
> International:			USA:
>   Phone +61 7 3858 0100		Phone 1 866 294 8921
>   Suite 1, 261 Given Terrace	    301 Bryant Street, #403
>   Paddington, QLD 4064 Australia	   San Francisco, CA 94107-1406
> 
> ..............................................................
> ..............
> ..........
> EditLive! The world leader in browser-based web authoring 
> tools: Desktop & Enterprise. 
> ..............................................................
> ..............
> ..........
> This email and any files transmitted with it are confidential 
> and intended solely for the use of the individual to whom 
> they are addressed. Opinions contained in this email do not 
> necessarily reflect the opinions of Ephox Corporation. If you 
> have received this email in error please notify the sender 
> immediately and delete all copies of the correspondence from 
> your computer and/or computer network. No warranty is given 
> that this message upon its receipt is virus free and the 
> sender in this respect accepts no liability.
> 
> 
> 
> -----Original Message-----
> From: Andrew Conrad [mailto:andrewconrad@attbi.com]
> Sent: Friday, 23 August 2002 7:31 PM
> To: 'Jakarta Commons Developers List'
> Subject: RE: [lang] System properties
> 
> 
> Well, I would think OSX is both Mac and Unix.  Does anyone 
> know what the java.os system property returns for OSX?
> 
> I think the boolean IS_FAMILY_XXX for the major branches  
> (win, mac, os/2, unix, <linux>) should be a start, and if 
> there is need and want for more, then we add more.
> 
> - 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>
> >
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:commons-dev-help@jakarta.apache.org>
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:commons-dev-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <mailto:commons-dev-help@jakarta.apache.org>
> 


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