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

@ -44,7 +44,14 @@ public class EmptyProjectBuildingHelper
List<ArtifactRepository> externalRepositories )
throws InvalidRepositoryException
{
return new ArrayList<ArtifactRepository>();
if ( externalRepositories != null )
{
return externalRepositories;
}
else
{
return new ArrayList<ArtifactRepository>();
}
}
public ClassRealm createProjectRealm( Model model, ArtifactRepository localRepository,