added ad-hoc processing for test-jar type which was coming incorrectly

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@757664 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Gusakov 2009-03-24 04:55:05 +00:00
parent c87fce65f9
commit 2559249eed
1 changed files with 9 additions and 1 deletions

View File

@ -229,7 +229,15 @@ public final class MavenDomainModel
}
else if ( mp.getUri().equals( ProjectUri.Dependencies.Dependency.type ) )
{
metadata.setType( mp.getResolvedValue() );
String val = mp.getResolvedValue();
// 2009-03-23 Oleg: TODO ask Shane where this really belongs?
if( "test-jar".equals( val ) )
{
metadata.setType( "jar" );
metadata.setClassifier( "tests" );
}
else
metadata.setType( val );
}
else if ( mp.getUri().equals( ProjectUri.Dependencies.Dependency.optional ) )
{