put back surefire, junit dependencies. Needed to run tests.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@312919 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-10-11 17:24:13 +00:00
parent 71633bcb1d
commit aaae013631
1 changed files with 11 additions and 8 deletions

View File

@ -268,14 +268,17 @@ public class SurefirePlugin
surefireBooter.addClassPathUrl( classpathElement );
}
// for ( Iterator i = pluginArtifacts.iterator(); i.hasNext(); )
// {
// Artifact artifact = (Artifact) i.next();
//
// getLog().debug( artifact.getFile().getAbsolutePath() );
//
// surefireBooter.addClassPathUrl( artifact.getFile().getAbsolutePath() );
// }
for ( Iterator i = pluginArtifacts.iterator(); i.hasNext(); )
{
Artifact artifact = (Artifact) i.next();
if ( "junit".equals( artifact.getArtifactId() ) || "surefire".equals( artifact.getArtifactId() ) )
{
getLog().debug( artifact.getFile().getAbsolutePath() );
surefireBooter.addClassPathUrl( artifact.getFile().getAbsolutePath() );
}
}
addReporters(surefireBooter);