From 6b02497ca4a78b0b32880bc6c7f220c96ab856fd Mon Sep 17 00:00:00 2001 From: Brett Leslie Porter Date: Sun, 11 Sep 2005 07:25:33 +0000 Subject: [PATCH] use correct path in the verifier for artifact metadata, allow commas in the list of tests to run git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@280088 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/maven/it/Verifier.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 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 3b1cb18d38..718b820f1d 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 @@ -265,11 +265,11 @@ public class Verifier { if ( hasCommand ) { - l.add( command + " " + files[i] ); + l.add( command + " " + new File( dir, files[i] ).getPath() ); } else { - l.add( files[i] ); + l.add( new File( dir, files[i] ).getPath() ); } } } @@ -698,11 +698,19 @@ public class Verifier for ( int i = 0; i < args.length; i++ ) { String test = args[i]; + if ( test.endsWith( "," ) ) + { + test = test.substring( 0, test.length() - 1 ); + } if ( !test.startsWith( "it" ) ) { test = "it" + fmt.format( Integer.valueOf( test ) ); } - tests.add( test ); + test = test.trim(); + if ( test.length() > 0 ) + { + tests.add( test ); + } } }