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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SystemPropertyChangeEnvironmentFacet.SystemPropertyChangesBuilder
addOrChange(String propertyName, String value)
Adds a SystemPropertyChange which adds or changes the named System property.List<SystemPropertyChangeEnvironmentFacet>
build()
SystemPropertyChangeEnvironmentFacet.SystemPropertyChangesBuilder
remove(String propertyName)
Adds a SystemPropertyChange which removes the named System property.
-
-
-
Method Detail
-
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:
SystemPropertyChangeEnvironmentFacet.ChangeType.REMOVE
-
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:
SystemPropertyChangeEnvironmentFacet.ChangeType.ADD
,SystemPropertyChangeEnvironmentFacet.ChangeType.CHANGE
-
build
public List<SystemPropertyChangeEnvironmentFacet> build()
- Returns:
- A List of SystemPropertyChange EnvironmentFacets which can be included as required into the ToolExecutionEnvironment.
-
-