Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 87932 invoked from network); 7 Oct 2003 22:01:59 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 7 Oct 2003 22:01:59 -0000 Received: (qmail 59902 invoked by uid 500); 7 Oct 2003 22:01:42 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 59841 invoked by uid 500); 7 Oct 2003 22:01:42 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 59828 invoked from network); 7 Oct 2003 22:01:41 -0000 Received: from unknown (HELO carbon.btinternet.com) (194.73.73.92) by daedalus.apache.org with SMTP; 7 Oct 2003 22:01:41 -0000 Received: from host81-128-72-168.in-addr.btopenworld.com ([81.128.72.168] helo=oemcomputer) by carbon.btinternet.com with smtp (Exim 3.22 #23) id 1A6ztr-0000YC-00 for commons-dev@jakarta.apache.org; Tue, 07 Oct 2003 23:01:47 +0100 Message-ID: <004e01c38d1f$35292f60$a8488051@oemcomputer> From: "Stephen Colebourne" To: "Jakarta Commons Developers List" References: <20030930142010.1b70d9fc.ruf10@op.pl> Subject: Re: [Lang][PATCH] - SystemUtils.IS_OS_UNIX for POSIX compilant systems Date: Tue, 7 Oct 2003 23:06:04 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Patch applied thanks. Stephen ----- Original Message ----- From: "rufio" To: Sent: Tuesday, September 30, 2003 1:20 PM Subject: [Lang][PATCH] - SystemUtils.IS_OS_UNIX for POSIX compilant systems > Hi! > > This patch adds org.apache.commons.lang.SystemUtils.IS_OS_UNIX > This is usefull when you need UNIX but not any specific flavour. > > > > > --- jakarta-commons/lang/src/java/org/apache/commons/lang/SystemUtils.java.orig 2003-09-30 14:04:05.000000000 +0200 > +++ jakarta-commons/lang/src/java/org/apache/commons/lang/SystemUtils.java 2003-09-30 14:04:18.000000000 +0200 > @@ -627,6 +627,16 @@ > public static final boolean IS_OS_SUN_OS = getOSMatches("SunOS"); > > /** > + *

Is true if this is POSIX compilant system, ie. any of AIX, HP-UX, Irix, Linux, MacOSX, Solaris or SUN OS.

> + * > + *

The field will return false if OS_NAME is > + * null.

> + * > + * @author Rafal Krupinski > + */ > + public static final boolean IS_OS_UNIX = IS_OS_AIX || IS_OS_HP_UX || IS_OS_IRIX || IS_OS_LINUX || IS_OS_MAC_OSX || IS_OS_SOLARIS || IS_OS_SUN_OS; > + > + /** > *

Is true if this is Windows.

> * > *

The field will return false if OS_NAME is > > > > > Regards, Rufio > -- > nmap -sS -O -p80,81 www.microsoft.com > [..] > Running: Linux 2.5.X > OS details: Linux Kernel 2.4.18 - 2.5.70 (X86) > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-dev-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org