Class SystemPropertyChangeEnvironmentFacet.SystemPropertyChangesBuilder
java.lang.Object
org.codehaus.mojo.jaxb2.shared.environment.sysprops.SystemPropertyChangeEnvironmentFacet.SystemPropertyChangesBuilder
- Enclosing class:
SystemPropertyChangeEnvironmentFacet
public static class SystemPropertyChangeEnvironmentFacet.SystemPropertyChangesBuilder
extends Object
Builder class intended to simplify creating SystemPropertyChange EnvironmentFacets.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.maven.plugin.logging.Log
private List
<SystemPropertyChangeEnvironmentFacet> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SystemPropertyChangesBuilder
(org.apache.maven.plugin.logging.Log mavenLog) -
Method Summary
Modifier and TypeMethodDescriptionaddOrChange
(String propertyName, String value) Adds a SystemPropertyChange which adds or changes the named System property.build()
private void
checkSanity
(String propertyName) Adds a SystemPropertyChange which removes the named System property.
-
Field Details
-
toReturn
-
mavenLog
private org.apache.maven.plugin.logging.Log mavenLog
-
-
Constructor Details
-
SystemPropertyChangesBuilder
private SystemPropertyChangesBuilder(org.apache.maven.plugin.logging.Log mavenLog)
-
-
Method Details
-
remove
public SystemPropertyChangeEnvironmentFacet.SystemPropertyChangesBuilder remove(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:
-
addOrChange
public SystemPropertyChangeEnvironmentFacet.SystemPropertyChangesBuilder addOrChange(String propertyName, 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:
-
build
- Returns:
- A List of SystemPropertyChange EnvironmentFacets which can be included as required into the ToolExecutionEnvironment.
-
checkSanity
-