code simplification

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337701 13f79535-47bb-0310-9956-ffa450edef68
master
Herve Boutemy 2012-05-12 22:01:10 +00:00
parent e5756b0911
commit b08d45c9d8
1 changed files with 2 additions and 5 deletions

View File

@ -68,7 +68,7 @@ public class AntMojoDescriptorExtractor
for ( Map.Entry<String, Set<File>> entry : metadataFilesKeyedByBasedir.entrySet() )
{
String basedir = (String) entry.getKey();
String basedir = entry.getKey();
Set<File> metadataFiles = entry.getValue();
for ( File metadataFile : metadataFiles )
@ -84,10 +84,7 @@ public class AntMojoDescriptorExtractor
"Found orphaned plugin metadata file: " + metadataFile );
}
String relativePath = null;
relativePath = scriptFile.getPath().substring( basedir.length() );
relativePath = relativePath.replace( '\\', '/' );
String relativePath = scriptFile.getPath().substring( basedir.length() ).replace( '\\', '/' );
if ( relativePath.startsWith( "/" ) )
{