Class SystemProperties
- java.lang.Object
-
- org.apache.maven.properties.internal.SystemProperties
-
public class SystemProperties extends java.lang.Object- Since:
- 3.2.3
-
-
Constructor Summary
Constructors Constructor Description SystemProperties()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddSystemProperties(java.util.Properties props)Thread-safe System.properties copy implementation.static java.util.PropertiescopyProperties(java.util.Properties properties)Copies the givenPropertiesobject into a newPropertiesobject, in a thread-safe manner.static java.util.PropertiesgetSystemProperties()Returns a copy ofSystem.getProperties()in a thread-safe manner.
-
-
-
Method Detail
-
addSystemProperties
public static void addSystemProperties(java.util.Properties props)
Thread-safe System.properties copy implementation.
-
getSystemProperties
public static java.util.Properties getSystemProperties()
Returns a copy ofSystem.getProperties()in a thread-safe manner.- Returns:
System.getProperties()obtained in a thread-safe manner.
-
copyProperties
public static java.util.Properties copyProperties(java.util.Properties properties)
Copies the givenPropertiesobject into a newPropertiesobject, in a thread-safe manner.- Parameters:
properties- Properties to copy.- Returns:
- Copy of the given properties.
-
-