Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Determine OS Family (was RE: How to goto URL from app)



On Tue, 08 Jul 2003 12:59, Michael J. Hall wrote:

Nick Howes wrote:

default : //try netscape on other platforms
params = new String[] {
"netscape",

It'd be nice if there was some way of determining OS family or something wouldn't it?
os.family = "Windows"
os.family = "MacOS"
os.family = "Unix"

Unless your Windows options covered some other variations there.

or something like...
boolean isPlatform(UNIX);

I think the fact you can't even tell for sure you're on a Unix box has
come up before.


<http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/ant-contrib/ant-contrib/src/net/sf/antcontrib/platform/OsFamily.java?rev=1.5&content-type=text/vnd.viewcvs-markup>

--
----------------------------------------------------------
Out of the 10Base-T, through the router, down the T1, over the
leased line, off the bridge, past the firewall... nothing but Net.
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.

References: 
 >RE: How to goto URL from app (From: "Hall, Michael J." <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.