From 0c305115a6ebaaddc5286eb8c5d71618dc88e1e8 Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Wed, 13 Apr 2005 11:22:02 +0000 Subject: [PATCH] fix integration tests git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163934 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/maven/it/Verifier.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/maven-core-it-verifier/src/main/java/org/apache/maven/it/Verifier.java b/maven-core-it-verifier/src/main/java/org/apache/maven/it/Verifier.java index 0ded23b7d4..57d5c01599 100644 --- a/maven-core-it-verifier/src/main/java/org/apache/maven/it/Verifier.java +++ b/maven-core-it-verifier/src/main/java/org/apache/maven/it/Verifier.java @@ -149,8 +149,6 @@ public class Verifier } lines.addAll( replaceArtifacts( line ) ); - - lines.add( line ); } reader.close(); @@ -179,7 +177,7 @@ public class Verifier newLine += convertArtifact( artifact ); newLine += line.substring( index + 1 ); - index = newLine.indexOf( "SNAPSHOT" ); + index = newLine.lastIndexOf( "SNAPSHOT" ); if ( index >= 0 ) { List l = new ArrayList(); @@ -189,7 +187,7 @@ public class Verifier } else { - return Collections.singletonList( line ); + return Collections.singletonList( newLine ); } } else