Package org.apache.maven.surefire.booter
Class SystemPropertyManager
- java.lang.Object
-
- org.apache.maven.surefire.booter.SystemPropertyManager
-
public class SystemPropertyManager extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SystemPropertyManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static PropertiesWrapper
loadProperties(java.io.File file)
static PropertiesWrapper
loadProperties(java.io.InputStream inStream)
Loads the properties, closes the streamstatic 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 keepForkFiles)
-
-
-
Method Detail
-
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
-
loadProperties
private static PropertiesWrapper loadProperties(java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
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 keepForkFiles) 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
-
-