org.codehaus.mojo.jsimport
Class LocalRepositoryCollector

java.lang.Object
  extended by org.codehaus.mojo.jsimport.LocalRepositoryCollector

public class LocalRepositoryCollector
extends Object

Collect a list of local repositories and provide a means of determining which repository a given file belongs to.

Author:
Christopher Hunt

Constructor Summary
LocalRepositoryCollector(org.apache.maven.project.MavenProject project, org.apache.maven.artifact.repository.ArtifactRepository localRepository, File[] additionalFolderBases)
          Constructor.
 
Method Summary
 void addLocalRepositoryPath(String path)
           
 String findLocalRepository(String filePath)
          Find a file within our collection of local repositories.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalRepositoryCollector

public LocalRepositoryCollector(org.apache.maven.project.MavenProject project,
                                org.apache.maven.artifact.repository.ArtifactRepository localRepository,
                                File[] additionalFolderBases)
Constructor.

Parameters:
project - The Maven project to be processed.
localRepository - The local repository being used by Maven.
additionalFolderBases - an array containing the locations of additional base folders to be considered.
Method Detail

findLocalRepository

public String findLocalRepository(String filePath)
Find a file within our collection of local repositories.

Parameters:
filePath - the file to be found in a local repo.
Returns:
the local repo found that houses the file.

addLocalRepositoryPath

public void addLocalRepositoryPath(String path)
Parameters:
path - a path to add to the list of paths to be considered as local repos.


Copyright © 2010-2012 Codehaus. All Rights Reserved.