hudson.maven.local_repo
Class LocalRepositoryLocator
java.lang.Object
hudson.model.AbstractDescribableImpl<LocalRepositoryLocator>
hudson.maven.local_repo.LocalRepositoryLocator
- All Implemented Interfaces:
- ExtensionPoint, Describable<LocalRepositoryLocator>
- Direct Known Subclasses:
- DefaultLocalRepositoryLocator, PerExecutorLocalRepositoryLocator, PerJobLocalRepositoryLocator
public abstract class LocalRepositoryLocator
- extends AbstractDescribableImpl<LocalRepositoryLocator>
- implements ExtensionPoint
Strategy pattern that decides the location of the Maven local repository for a build.
- Since:
- 1.448
- Author:
- Kohsuke Kawaguchi
- See Also:
LocalRepositoryLocatorDescriptor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalRepositoryLocator
public LocalRepositoryLocator()
locate
public abstract FilePath locate(AbstractMavenBuild build)
- Called during the build on the master to determine the location of the local Maven repository.
- Returns:
- null to let Maven uses its default location. Otherwise this must be located on the same
node as
AbstractBuild.getWorkspace()
does.
getDescriptor
public LocalRepositoryLocatorDescriptor getDescriptor()
- Description copied from interface:
Describable
- Gets the descriptor for this instance.
Descriptor
is a singleton for every concrete Describable
implementation, so if a.getClass()==b.getClass() then
a.getDescriptor()==b.getDescriptor() must hold.
- Specified by:
getDescriptor
in interface Describable<LocalRepositoryLocator>
- Overrides:
getDescriptor
in class AbstractDescribableImpl<LocalRepositoryLocator>
Copyright © 2004-2013. All Rights Reserved.