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.
-
Method Summary
Modifier and TypeMethodDescriptionaddOrChange(String propertyName, String value) Adds a SystemPropertyChange which adds or changes the named System property.build()Adds a SystemPropertyChange which removes the named System property.
-
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.
-