org.mule.util
Class SystemUtils

java.lang.Object
  extended byorg.apache.commons.lang.SystemUtils
      extended byorg.mule.util.SystemUtils

public class SystemUtils
extends SystemUtils

See Also:
Serialized Form

Field Summary
protected static Log logger
           
 
Constructor Summary
SystemUtils()
           
 
Method Summary
static String getCommandLineOption(String option, String[] args)
          Returns the value corresponding to the given option from the command line, for example if the options are "-config mule-config.xml" getCommandLineOption("config") would return "mule-config.xml" TODO Replace this functionality with Apache Commons CLI: see MULE-956
static Map getenv()
          Get the operating system environment variables.
static String getenv(String name)
           
static boolean isIbmJDK()
           
static boolean isSunJDK()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final Log logger
Constructor Detail

SystemUtils

public SystemUtils()
Method Detail

getenv

public static Map getenv()
Get the operating system environment variables. This should work for Windows and Linux.

Returns:
Map or an empty map if there was an error.

getenv

public static String getenv(String name)

isSunJDK

public static boolean isSunJDK()

isIbmJDK

public static boolean isIbmJDK()

getCommandLineOption

public static String getCommandLineOption(String option,
                                          String[] args)
Returns the value corresponding to the given option from the command line, for example if the options are "-config mule-config.xml" getCommandLineOption("config") would return "mule-config.xml" TODO Replace this functionality with Apache Commons CLI: see MULE-956



Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.