Class Local
java.lang.Object
org.apache.maven.buildcache.xml.config.Local
- All Implemented Interfaces:
Serializable
Class Local.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the base directory where the local cache is located.intGet maximum number of cached build per artifact in local cache.voidsetLocation(String location) Set the base directory where the local cache is located.voidsetMaxBuildsCached(int maxBuildsCached) Set maximum number of cached build per artifact in local cache.
-
Constructor Details
-
Local
public Local()
-
-
Method Details
-
getLocation
Get the base directory where the local cache is located. Defaults to~/.m2/build-cache/.- Returns:
- String
-
getMaxBuildsCached
public int getMaxBuildsCached()Get maximum number of cached build per artifact in local cache. First created cache (the oldest) is evicted if breached.- Returns:
- int
-
setLocation
Set the base directory where the local cache is located. Defaults to~/.m2/build-cache/.- Parameters:
location- a location object.
-
setMaxBuildsCached
public void setMaxBuildsCached(int maxBuildsCached) Set maximum number of cached build per artifact in local cache. First created cache (the oldest) is evicted if breached.- Parameters:
maxBuildsCached- a maxBuildsCached object.
-