tbennett 2004/04/19 10:40:12 Modified: util/env/src/java/org/apache/avalon/util/env Env.java Log: Added two static methods: boolean isNetWare() boolean isOpenVMS() Revision Changes Path 1.8 +30 -1 avalon/util/env/src/java/org/apache/avalon/util/env/Env.java Index: Env.java =================================================================== RCS file: /home/cvs/avalon/util/env/src/java/org/apache/avalon/util/env/Env.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- Env.java 24 Feb 2004 22:18:24 -0000 1.7 +++ Env.java 19 Apr 2004 17:40:12 -0000 1.8 @@ -170,6 +170,35 @@ return false ; } + /** + * Checks to see if the operating system is NetWare. + * + * @return true of the OS is NetWare, false otherwise + */ + public static boolean isNetWare() + { + if ( -1 != OSNAME.indexOf( "netware" ) ) + { + return true ; + } + + return false ; + } + + /** + * Checks to see if the operating system is OpenVMS. + * + * @return true of the OS is a NetWare variant, false otherwise + */ + public static boolean isOpenVMS() + { + if ( -1 != OSNAME.indexOf( "openvms" ) ) + { + return true ; + } + + return false ; + } /** * Gets all environment variables within a Properties instance where the
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]