Package org.apache.maven.surefire.booter
Class SystemPropertyManager
java.lang.Object
org.apache.maven.surefire.booter.SystemPropertyManager
- Author:
- Kristian Rosenvold
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PropertiesWrapper
loadProperties
(InputStream inStream) Loads the properties, closes the streamstatic void
setSystemProperties
(File file) static void
writePropertiesFile
(File file, String name, Properties properties) static File
writePropertiesFile
(Properties properties, File tempDirectory, String name, boolean keepForkFiles)
-
Constructor Details
-
SystemPropertyManager
public SystemPropertyManager()
-
-
Method Details
-
loadProperties
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
- 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
-