hudson.maven.local_repo
Class LocalRepositoryLocator

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<LocalRepositoryLocator>
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
LocalRepositoryLocator()
           
 
Method Summary
 LocalRepositoryLocatorDescriptor getDescriptor()
          Gets the descriptor for this instance.
abstract  FilePath locate(AbstractMavenBuild build)
          Called during the build on the master to determine the location of the local Maven repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalRepositoryLocator

public LocalRepositoryLocator()
Method Detail

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.