org.apache.maven.surefire.booter
Class SystemPropertyManager

java.lang.Object
  extended by org.apache.maven.surefire.booter.SystemPropertyManager

public class SystemPropertyManager
extends Object

Author:
Kristian Rosenvold

Constructor Summary
SystemPropertyManager()
           
 
Method Summary
static void close(InputStream inputStream)
           
static PropertiesWrapper loadProperties(InputStream inStream)
          Loads the properties, closes the stream
static void setSystemProperties(File file)
           
static void writePropertiesFile(File file, String name, Properties properties)
           
static File writePropertiesFile(Properties properties, File tempDirectory, String name, boolean keepForkFiles)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemPropertyManager

public SystemPropertyManager()
Method Detail

loadProperties

public static PropertiesWrapper loadProperties(InputStream inStream)
                                        throws IOException
Loads the properties, closes the stream

Parameters:
inStream - The stream to read from, will be closed
Returns:
The properties
Throws:
IOException - If something bad happens

setSystemProperties

public static void setSystemProperties(File file)
                                throws IOException
Throws:
IOException

writePropertiesFile

public static File writePropertiesFile(Properties properties,
                                       File tempDirectory,
                                       String name,
                                       boolean keepForkFiles)
                                throws IOException
Throws:
IOException

writePropertiesFile

public static void writePropertiesFile(File file,
                                       String name,
                                       Properties properties)
                                throws IOException
Throws:
IOException

close

public static void close(InputStream inputStream)


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.