org.codehaus.plexus.interpolation.os
Class OperatingSystemUtils
java.lang.Object
org.codehaus.plexus.interpolation.os.OperatingSystemUtils
public final class OperatingSystemUtils
- extends Object
NOTE: This class was copied from plexus-utils, to allow this library
to stand completely self-contained.
- Version:
- $Id: OperatingSystemUtils.java 8252 2009-06-05 00:13:00Z igorife $
- Author:
- Trygve Laugstøl
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getSystemEnvVars
public static Properties getSystemEnvVars()
throws IOException
- Throws:
IOException
getSystemEnvVars
public static Properties getSystemEnvVars(boolean caseSensitive)
throws IOException
- Return the shell environment variables. If
caseSensitive == true
, then envar
keys will all be upper-case.
- Parameters:
caseSensitive
- Whether environment variable keys should be treated case-sensitively.
- Returns:
- Properties object of (possibly modified) envar keys mapped to their values.
- Throws:
IOException
Copyright © 2001-2011 Codehaus. All Rights Reserved.