Package org.apache.maven.plugin.surefire
Class SurefireProperties
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<java.lang.Object,java.lang.Object>
-
- java.util.Properties
-
- org.apache.maven.plugin.surefire.SurefireProperties
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.Object,java.lang.Object>
,org.apache.maven.surefire.booter.KeyValueSource
public class SurefireProperties extends java.util.Properties implements org.apache.maven.surefire.booter.KeyValueSource
AProperties
implementation that preserves insertion order.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SurefireProperties()
SurefireProperties(java.util.Properties source)
SurefireProperties(org.apache.maven.surefire.booter.KeyValueSource source)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addList(java.util.List<?> items, java.lang.String propertyPrefix)
void
clear()
java.util.Collection<java.lang.String>
copyPropertiesFrom(java.util.Map<java.lang.String,java.lang.String> source)
Copies all keys and values from source to these properties, overwriting existing properties with same namejava.util.Collection<java.lang.String>
copyPropertiesFrom(java.util.Properties source)
Copies all keys and values from source to these properties, overwriting existing properties with same namevoid
copyTo(java.util.Map<java.lang.Object,java.lang.Object> target)
void
copyToSystemProperties()
java.lang.Iterable<java.lang.Object>
getStringKeySet()
java.util.Enumeration<java.lang.Object>
keys()
static SurefireProperties
loadProperties(java.io.File file)
java.util.Set<java.lang.Object>
propertiesThatCannotBeSetASystemProperties()
java.lang.Object
put(java.lang.Object key, java.lang.Object value)
void
putAll(java.util.Map<?,?> t)
java.lang.Object
remove(java.lang.Object key)
void
setClasspath(java.lang.String prefix, org.apache.maven.surefire.booter.Classpath classpath)
void
setNullableProperty(java.lang.String key, java.lang.String value)
void
setProperty(java.lang.String key, int value)
void
setProperty(java.lang.String key, java.io.File file)
void
setProperty(java.lang.String key, java.lang.Boolean aBoolean)
void
setProperty(java.lang.String key, java.lang.Long value)
-
Methods inherited from class java.util.Properties
clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keySet, list, list, load, load, loadFromXML, merge, propertyNames, putIfAbsent, rehash, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
-
-
-
Method Detail
-
putAll
public void putAll(java.util.Map<?,?> t)
- Specified by:
putAll
in interfacejava.util.Map<java.lang.Object,java.lang.Object>
- Overrides:
putAll
in classjava.util.Properties
-
put
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
- Specified by:
put
in interfacejava.util.Map<java.lang.Object,java.lang.Object>
- Overrides:
put
in classjava.util.Properties
-
remove
public java.lang.Object remove(java.lang.Object key)
- Specified by:
remove
in interfacejava.util.Map<java.lang.Object,java.lang.Object>
- Overrides:
remove
in classjava.util.Properties
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Map<java.lang.Object,java.lang.Object>
- Overrides:
clear
in classjava.util.Properties
-
keys
public java.util.Enumeration<java.lang.Object> keys()
- Overrides:
keys
in classjava.util.Properties
-
copyPropertiesFrom
public java.util.Collection<java.lang.String> copyPropertiesFrom(java.util.Properties source)
Copies all keys and values from source to these properties, overwriting existing properties with same name- Parameters:
source
-- Returns:
- all overwritten property names (may be empty if there was no property name clash)
-
copyPropertiesFrom
public java.util.Collection<java.lang.String> copyPropertiesFrom(java.util.Map<java.lang.String,java.lang.String> source)
Copies all keys and values from source to these properties, overwriting existing properties with same name- Parameters:
source
-- Returns:
- all overwritten property names (may be empty if there was no property name clash)
-
getStringKeySet
public java.lang.Iterable<java.lang.Object> getStringKeySet()
-
propertiesThatCannotBeSetASystemProperties
public java.util.Set<java.lang.Object> propertiesThatCannotBeSetASystemProperties()
-
copyToSystemProperties
public void copyToSystemProperties()
-
copyTo
public void copyTo(java.util.Map<java.lang.Object,java.lang.Object> target)
- Specified by:
copyTo
in interfaceorg.apache.maven.surefire.booter.KeyValueSource
-
setProperty
public void setProperty(java.lang.String key, java.io.File file)
-
setProperty
public void setProperty(java.lang.String key, java.lang.Boolean aBoolean)
-
setProperty
public void setProperty(java.lang.String key, int value)
-
setProperty
public void setProperty(java.lang.String key, java.lang.Long value)
-
addList
public void addList(java.util.List<?> items, java.lang.String propertyPrefix)
-
setClasspath
public void setClasspath(java.lang.String prefix, org.apache.maven.surefire.booter.Classpath classpath)
-
loadProperties
public static SurefireProperties loadProperties(java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
setNullableProperty
public void setNullableProperty(java.lang.String key, java.lang.String value)
-
-