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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]