mirror of
https://github.com/apache/archiva.git
synced 2025-02-07 18:49:48 +00:00
[MRM-674] remove redundant code
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/branches@630094 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8802ed3b8e
commit
ea9f3fa9e1
@ -204,13 +204,6 @@ public ArtifactReference toArtifactReference( String path )
|
||||
+ "] and layout specified type [" + expectedType + "] (which maps to extension: ["
|
||||
+ expectedExtension + "]) on path [" + path + "]" );
|
||||
}
|
||||
|
||||
// if ( classifier != null && !filename.endsWith( "-" + classifier + "." + extension ) )
|
||||
// {
|
||||
// throw new LayoutException( INVALID_ARTIFACT_PATH + "mismatch on filename [" + filename
|
||||
// + "] and layout specified type [" + expectedType + "] (which maps to classifier: ["
|
||||
// + classifier + "]) on path [" + path + "]" );
|
||||
// }
|
||||
}
|
||||
|
||||
return artifact;
|
||||
|
@ -239,17 +239,9 @@ public void testGoodFooLibSources()
|
||||
public void testBadClassifierFooLibSources()
|
||||
throws LayoutException
|
||||
{
|
||||
String path = "com.foo.lib/java-sources/foo-lib-2.1-alpha-1.jar";
|
||||
|
||||
try
|
||||
{
|
||||
parser.toArtifactReference( path );
|
||||
fail( "Expected an exception" );
|
||||
}
|
||||
catch ( LayoutException e )
|
||||
{
|
||||
assertTrue( true );
|
||||
}
|
||||
assertBadPath( "com.foo.lib/java-sources/foo-lib-2.1-alpha-1.jar", "missing required classifier" );
|
||||
assertBadPath( "com.foo.lib/java-sources/foo-lib-2.1-alpha-1-javadoc.jar", "incorrect classifier" );
|
||||
assertBadPath( "com.foo.lib/java-sources/foo-lib-2.1-alpha-1-other.jar", "incorrect classifier" );
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user