surefire issues

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163755 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-04-04 05:31:29 +00:00
parent bab8d3fd90
commit 54a8cea863
2 changed files with 18 additions and 3 deletions

View File

@ -280,7 +280,22 @@ public class MBoot
reader = new ModelReader( localRepository );
reader.parse( new File( basedir, "maven-plugins/maven-surefire-plugin/pom.xml" ) );
List surefireDependencies = reader.getDependencies();
List surefireDependencies = new ArrayList();
// TODO: while we have maven-artifact in there, it needs to be filtered...
for ( Iterator i = reader.getDependencies().iterator(); i.hasNext(); )
{
Dependency d = (Dependency) i.next();
if ( d.getGroupId().equals( "surefire" ) )
{
surefireDependencies.add( d );
}
}
if ( online )
{
downloader.downloadDependencies( surefireDependencies );
}
reader = new ModelReader( localRepository );

View File

@ -60,10 +60,10 @@ public class ArtifactDownloader
System.out.println( "Using the following proxy : " + proxyHost + "/" + proxyPort );
}
public void downloadDependencies( List files )
public void downloadDependencies( List dependencies )
throws Exception
{
for ( Iterator j = files.iterator(); j.hasNext(); )
for ( Iterator j = dependencies.iterator(); j.hasNext(); )
{
Dependency dep = (Dependency) j.next();