code simplification
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337701 13f79535-47bb-0310-9956-ffa450edef68master
parent
e5756b0911
commit
b08d45c9d8
|
|
@ -68,7 +68,7 @@ public class AntMojoDescriptorExtractor
|
||||||
|
|
||||||
for ( Map.Entry<String, Set<File>> entry : metadataFilesKeyedByBasedir.entrySet() )
|
for ( Map.Entry<String, Set<File>> entry : metadataFilesKeyedByBasedir.entrySet() )
|
||||||
{
|
{
|
||||||
String basedir = (String) entry.getKey();
|
String basedir = entry.getKey();
|
||||||
Set<File> metadataFiles = entry.getValue();
|
Set<File> metadataFiles = entry.getValue();
|
||||||
|
|
||||||
for ( File metadataFile : metadataFiles )
|
for ( File metadataFile : metadataFiles )
|
||||||
|
|
@ -84,10 +84,7 @@ public class AntMojoDescriptorExtractor
|
||||||
"Found orphaned plugin metadata file: " + metadataFile );
|
"Found orphaned plugin metadata file: " + metadataFile );
|
||||||
}
|
}
|
||||||
|
|
||||||
String relativePath = null;
|
String relativePath = scriptFile.getPath().substring( basedir.length() ).replace( '\\', '/' );
|
||||||
|
|
||||||
relativePath = scriptFile.getPath().substring( basedir.length() );
|
|
||||||
relativePath = relativePath.replace( '\\', '/' );
|
|
||||||
|
|
||||||
if ( relativePath.startsWith( "/" ) )
|
if ( relativePath.startsWith( "/" ) )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue