public final class SystemPropertySaveEnvironmentFacet extends AbstractLogAwareFacet
SystemPropertyChangeEnvironmentFacet, this does not a set a new
property value itself, just saves the old value and later restores or clears it.
This facet accepts the key of the property to save.log| Constructor and Description |
|---|
SystemPropertySaveEnvironmentFacet(String key,
org.apache.maven.plugin.logging.Log log)
Creates a SystemPropertySave which will remember the original value of the
supplied system property for the duration of this SystemPropertySave.
|
| Modifier and Type | Method and Description |
|---|---|
void |
restore()
Restores the original Environment, implying that the change performed in
setup()
method are restored to the state before the setup method was called. |
void |
setup()
Sets up this Environment, inferring temporary changes to environment variables or conditions.
|
String |
toString() |
public SystemPropertySaveEnvironmentFacet(String key, org.apache.maven.plugin.logging.Log log)
key - A non-null key.log - The active Maven Log.public void restore()
setup()
method are restored to the state before the setup method was called.public void setup()
restore() method.Copyright © 2005–2019 MojoHaus. All rights reserved.