commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne" <scolebou...@btopenworld.com>
Subject Re: [Lang][PATCH] - SystemUtils.IS_OS_UNIX for POSIX compilant systems
Date Tue, 07 Oct 2003 22:06:04 GMT
Patch applied thanks.
Stephen

----- Original Message -----
From: "rufio" <ruf10@op.pl>
To: <commons-dev@jakarta.apache.org>
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.
>
>
> <snip>
>
> ---
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");
>
>      /**
> +     * <p>Is <code>true</code> if this is POSIX compilant system,
ie. any
of AIX, HP-UX, Irix, Linux, MacOSX, Solaris or SUN OS.</p>
> +     *
> +     * <p>The field will return <code>false</code> if
<code>OS_NAME</code> is
> +     * <code>null</code>.</p>
> +     *
> +     * @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;
> +
> +    /**
>       * <p>Is <code>true</code> if this is Windows.</p>
>       *
>       * <p>The field will return <code>false</code> if
<code>OS_NAME</code> is
>
>
> </snip>
>
> 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


Mime
View raw message