public class BuildContextHolder extends Object
BuildContext is used, but if it is
not available - the alternate storage (a properties file stored in the file system) is used.| Constructor and Description |
|---|
BuildContextHolder(org.sonatype.plexus.build.incremental.BuildContext buildContext,
File buildDirectory) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy the persisted storage and all stored data.
|
protected File |
getFallbackStorageFile() |
String |
getValue(String key) |
boolean |
isIncrementalBuild() |
void |
setIncrementalBuildEnabled(boolean incrementalBuildEnabled) |
void |
setValue(String key,
String value) |
public BuildContextHolder(org.sonatype.plexus.build.incremental.BuildContext buildContext,
File buildDirectory)
buildContext - - The context provided by maven. If this is not provided, the default mechanism for persisting build data
is used.buildDirectory - the folder where the build output is created. If this value is null, the temp folder will be used.protected File getFallbackStorageFile()
public String getValue(String key)
key - of the value to retrieve.public void setValue(String key, String value)
key - to associate with the value to be persisted.value - to persist.public void setIncrementalBuildEnabled(boolean incrementalBuildEnabled)
public boolean isIncrementalBuild()
public void destroy()
Copyright © 2008-2014. All Rights Reserved.