File D:\maven-qcr-plugin-testsunitaires\qcr4java\jenkins-master\target\site\qc\maven-plugin\src\main\java\hudson\maven\local_repo\LocalRepositoryLocator.java.html

1 package hudson.maven.local_repo;
2
3 import hudson.ExtensionPoint;
4 import hudson.FilePath;
5 import hudson.maven.AbstractMavenBuild;
6 import hudson.model.AbstractDescribableImpl;
7
8 /**
9 * Strategy pattern that decides the location of the Maven local repository for a build.
10 *
11 * @author Kohsuke Kawaguchi
12 * @since 1.448
13 * @see LocalRepositoryLocatorDescriptor
14 */
15 public abstract class LocalRepositoryLocator extends AbstractDescribableImpl<LocalRepositoryLocator> implements ExtensionPoint {
16 /**
17 * Called during the build on the master to determine the location of the local Maven repository.
18 *
19 * @return
20 * null to let Maven uses its default location. Otherwise this must be located on the same
21 * node as {@link AbstractMavenBuild#getWorkspace()} does.
22 */
23 public abstract FilePath locate(AbstractMavenBuild build);
24
25 @Override
26 public LocalRepositoryLocatorDescriptor getDescriptor() {
27 return (LocalRepositoryLocatorDescriptor)super.getDescriptor();
28 }
29 }
30