o Fixed empty project building helper to pass request repos through if provided for tests that use them

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@796864 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-07-22 20:13:24 +00:00
parent b69b4ab4f9
commit cec9b2002a
1 changed files with 8 additions and 1 deletions

View File

@ -43,9 +43,16 @@ public class EmptyProjectBuildingHelper
public List<ArtifactRepository> createArtifactRepositories( List<Repository> pomRepositories, public List<ArtifactRepository> createArtifactRepositories( List<Repository> pomRepositories,
List<ArtifactRepository> externalRepositories ) List<ArtifactRepository> externalRepositories )
throws InvalidRepositoryException throws InvalidRepositoryException
{
if ( externalRepositories != null )
{
return externalRepositories;
}
else
{ {
return new ArrayList<ArtifactRepository>(); return new ArrayList<ArtifactRepository>();
} }
}
public ClassRealm createProjectRealm( Model model, ArtifactRepository localRepository, public ClassRealm createProjectRealm( Model model, ArtifactRepository localRepository,
List<ArtifactRepository> remoteRepositories ) List<ArtifactRepository> remoteRepositories )