mirror of https://github.com/apache/maven.git
delete metadata files for all versions to ensure intergration test works as expected
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@326389 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6fe85e1bd0
commit
e6b92f1b17
|
@ -222,9 +222,6 @@ public class Verifier
|
|||
newLine += convertArtifact( artifact );
|
||||
newLine += line.substring( index + 1 );
|
||||
|
||||
index = newLine.lastIndexOf( "SNAPSHOT" );
|
||||
if ( index >= 0 )
|
||||
{
|
||||
List l = new ArrayList();
|
||||
l.add( newLine );
|
||||
|
||||
|
@ -246,6 +243,19 @@ public class Verifier
|
|||
}
|
||||
|
||||
File dir = new File( filespec );
|
||||
addMetadataToList( dir, hasCommand, l, command );
|
||||
addMetadataToList( dir.getParentFile(), hasCommand, l, command );
|
||||
|
||||
return l;
|
||||
}
|
||||
else
|
||||
{
|
||||
return Collections.singletonList( line );
|
||||
}
|
||||
}
|
||||
|
||||
private static void addMetadataToList( File dir, boolean hasCommand, List l, String command )
|
||||
{
|
||||
if ( dir.exists() && dir.isDirectory() )
|
||||
{
|
||||
String[] files = dir.list( new FilenameFilter()
|
||||
|
@ -269,18 +279,6 @@ public class Verifier
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
return l;
|
||||
}
|
||||
else
|
||||
{
|
||||
return Collections.singletonList( newLine );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return Collections.singletonList( line );
|
||||
}
|
||||
}
|
||||
|
||||
private static String convertArtifact( String artifact )
|
||||
|
@ -636,8 +634,8 @@ public class Verifier
|
|||
cli.createArgument().setLine( "-D" + key + "=" + properties.getProperty( key ) );
|
||||
}
|
||||
|
||||
boolean useMavenRepoLocal =
|
||||
Boolean.valueOf( controlProperties.getProperty( "use.mavenRepoLocal", "true" ) ).booleanValue();
|
||||
boolean useMavenRepoLocal = Boolean.valueOf(
|
||||
controlProperties.getProperty( "use.mavenRepoLocal", "true" ) ).booleanValue();
|
||||
if ( useMavenRepoLocal )
|
||||
{
|
||||
// Note: Make sure that the repo is surrounded by quotes as it can possibly have
|
||||
|
@ -852,8 +850,8 @@ public class Verifier
|
|||
|
||||
Properties controlProperties = verifier.loadProperties( "verifier.properties" );
|
||||
|
||||
boolean chokeOnErrorOutput =
|
||||
Boolean.valueOf( controlProperties.getProperty( "failOnErrorOutput", "true" ) ).booleanValue();
|
||||
boolean chokeOnErrorOutput = Boolean.valueOf(
|
||||
controlProperties.getProperty( "failOnErrorOutput", "true" ) ).booleanValue();
|
||||
|
||||
verifier.executeGoals( properties, controlProperties, "goals.txt" );
|
||||
|
||||
|
|
Loading…
Reference in New Issue