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.KeyValueSourceAPropertiesimplementation 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 voidaddList(java.util.List<?> items, java.lang.String propertyPrefix)voidclear()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 namevoidcopyTo(java.util.Map<java.lang.Object,java.lang.Object> target)voidcopyToSystemProperties()java.lang.Iterable<java.lang.Object>getStringKeySet()java.util.Enumeration<java.lang.Object>keys()static SurefirePropertiesloadProperties(java.io.File file)java.util.Set<java.lang.Object>propertiesThatCannotBeSetASystemProperties()java.lang.Objectput(java.lang.Object key, java.lang.Object value)voidputAll(java.util.Map<?,?> t)java.lang.Objectremove(java.lang.Object key)voidsetClasspath(java.lang.String prefix, org.apache.maven.surefire.booter.Classpath classpath)voidsetNullableProperty(java.lang.String key, java.lang.String value)voidsetProperty(java.lang.String key, int value)voidsetProperty(java.lang.String key, java.io.File file)voidsetProperty(java.lang.String key, java.lang.Boolean aBoolean)voidsetProperty(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:
putAllin interfacejava.util.Map<java.lang.Object,java.lang.Object>- Overrides:
putAllin classjava.util.Properties
-
put
public java.lang.Object put(java.lang.Object key, java.lang.Object value)- Specified by:
putin interfacejava.util.Map<java.lang.Object,java.lang.Object>- Overrides:
putin classjava.util.Properties
-
remove
public java.lang.Object remove(java.lang.Object key)
- Specified by:
removein interfacejava.util.Map<java.lang.Object,java.lang.Object>- Overrides:
removein classjava.util.Properties
-
clear
public void clear()
- Specified by:
clearin interfacejava.util.Map<java.lang.Object,java.lang.Object>- Overrides:
clearin classjava.util.Properties
-
keys
public java.util.Enumeration<java.lang.Object> keys()
- Overrides:
keysin 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:
copyToin 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)
-
-