Class SurefireProperties

All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>, org.apache.maven.surefire.booter.KeyValueSource

public class SurefireProperties extends Properties implements org.apache.maven.surefire.booter.KeyValueSource
A Properties implementation that preserves insertion order.
See Also:
  • Constructor Details

    • SurefireProperties

      public SurefireProperties()
    • SurefireProperties

      public SurefireProperties(Properties source)
    • SurefireProperties

      public SurefireProperties(org.apache.maven.surefire.booter.KeyValueSource source)
  • Method Details

    • putAll

      public void putAll(Map<?,?> t)
      Specified by:
      putAll in interface Map<Object,Object>
      Overrides:
      putAll in class Properties
    • put

      public Object put(Object key, Object value)
      Specified by:
      put in interface Map<Object,Object>
      Overrides:
      put in class Properties
    • remove

      public Object remove(Object key)
      Specified by:
      remove in interface Map<Object,Object>
      Overrides:
      remove in class Properties
    • clear

      public void clear()
      Specified by:
      clear in interface Map<Object,Object>
      Overrides:
      clear in class Properties
    • keys

      public Enumeration<Object> keys()
      Overrides:
      keys in class Properties
    • copyPropertiesFrom

      public Collection<String> copyPropertiesFrom(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 Collection<String> copyPropertiesFrom(Map<String,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 Iterable<Object> getStringKeySet()
    • propertiesThatCannotBeSetASystemProperties

      public Set<Object> propertiesThatCannotBeSetASystemProperties()
    • copyToSystemProperties

      public void copyToSystemProperties()
    • copyTo

      public void copyTo(Map<Object,Object> target)
      Specified by:
      copyTo in interface org.apache.maven.surefire.booter.KeyValueSource
    • setProperty

      public void setProperty(String key, File file)
    • setProperty

      public void setProperty(String key, Boolean aBoolean)
    • setProperty

      public void setProperty(String key, int value)
    • setProperty

      public void setProperty(String key, Long value)
    • addList

      public void addList(List<?> items, String propertyPrefix)
    • setClasspath

      public void setClasspath(String prefix, org.apache.maven.surefire.booter.Classpath classpath)
    • loadProperties

      public static SurefireProperties loadProperties(File file) throws IOException
      Throws:
      IOException
    • setNullableProperty

      public void setNullableProperty(String key, String value)