Class SystemPropertyChangeEnvironmentFacet.SystemPropertyChangesBuilder
- java.lang.Object
-
- org.codehaus.mojo.jaxb2.shared.environment.sysprops.SystemPropertyChangeEnvironmentFacet.SystemPropertyChangesBuilder
-
- Enclosing class:
- SystemPropertyChangeEnvironmentFacet
public static class SystemPropertyChangeEnvironmentFacet.SystemPropertyChangesBuilder extends java.lang.ObjectBuilder class intended to simplify creating SystemPropertyChange EnvironmentFacets.
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.maven.plugin.logging.LogmavenLogprivate java.util.List<SystemPropertyChangeEnvironmentFacet>toReturn
-
Constructor Summary
Constructors Modifier Constructor Description privateSystemPropertyChangesBuilder(org.apache.maven.plugin.logging.Log mavenLog)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SystemPropertyChangeEnvironmentFacet.SystemPropertyChangesBuilderaddOrChange(java.lang.String propertyName, java.lang.String value)Adds a SystemPropertyChange which adds or changes the named System property.java.util.List<SystemPropertyChangeEnvironmentFacet>build()private voidcheckSanity(java.lang.String propertyName)SystemPropertyChangeEnvironmentFacet.SystemPropertyChangesBuilderremove(java.lang.String propertyName)Adds a SystemPropertyChange which removes the named System property.
-
-
-
Field Detail
-
toReturn
private java.util.List<SystemPropertyChangeEnvironmentFacet> toReturn
-
mavenLog
private org.apache.maven.plugin.logging.Log mavenLog
-
-
Method Detail
-
remove
public SystemPropertyChangeEnvironmentFacet.SystemPropertyChangesBuilder remove(java.lang.String propertyName)
Adds a SystemPropertyChange which removes the named System property.- Parameters:
propertyName- The name of the system property for which to create a REMOVE-type SystemPropertyChange.- Returns:
- This builder, for chaining.
- See Also:
SystemPropertyChangeEnvironmentFacet.ChangeType.REMOVE
-
addOrChange
public SystemPropertyChangeEnvironmentFacet.SystemPropertyChangesBuilder addOrChange(java.lang.String propertyName, java.lang.String value)
Adds a SystemPropertyChange which adds or changes the named System property.- Parameters:
propertyName- The name of the system property for which to create an ADD- or CREATE-type SystemPropertyChange.value- The new value of the system property to set.- Returns:
- This builder, for chaining.
- See Also:
SystemPropertyChangeEnvironmentFacet.ChangeType.ADD,SystemPropertyChangeEnvironmentFacet.ChangeType.CHANGE
-
build
public java.util.List<SystemPropertyChangeEnvironmentFacet> build()
- Returns:
- A List of SystemPropertyChange EnvironmentFacets which can be included as required into the ToolExecutionEnvironment.
-
checkSanity
private void checkSanity(java.lang.String propertyName)
-
-