org.apache.maven.surefire.booter
Class SystemPropertyManager
java.lang.Object
org.apache.maven.surefire.booter.SystemPropertyManager
public class SystemPropertyManager
- extends java.lang.Object
- Author:
- Kristian Rosenvold
Method Summary |
static void |
close(java.io.InputStream inputStream)
|
static PropertiesWrapper |
loadProperties(java.io.InputStream inStream)
Loads the properties, closes the stream |
static void |
setSystemProperties(java.io.File file)
|
static void |
writePropertiesFile(java.io.File file,
java.lang.String name,
java.util.Properties properties)
|
static java.io.File |
writePropertiesFile(java.util.Properties properties,
java.io.File tempDirectory,
java.lang.String name,
boolean isDebug)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemPropertyManager
public SystemPropertyManager()
loadProperties
public static PropertiesWrapper loadProperties(java.io.InputStream inStream)
throws java.io.IOException
- Loads the properties, closes the stream
- Parameters:
inStream
- The stream to read from, will be closed
- Returns:
- The properties
- Throws:
java.io.IOException
- If something bad happens
setSystemProperties
public static void setSystemProperties(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
writePropertiesFile
public static java.io.File writePropertiesFile(java.util.Properties properties,
java.io.File tempDirectory,
java.lang.String name,
boolean isDebug)
throws java.io.IOException
- Throws:
java.io.IOException
writePropertiesFile
public static void writePropertiesFile(java.io.File file,
java.lang.String name,
java.util.Properties properties)
throws java.io.IOException
- Throws:
java.io.IOException
close
public static void close(java.io.InputStream inputStream)
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.