Allow the use of non-canonical maven buildnumbers (from git repo clones and/or svn exports).

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@768994 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2009-04-27 13:59:25 +00:00
parent b0220b6caf
commit 2846766111
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ public class MavenITmng1830ShowVersionTest
verifier.resetStreams();
String line = (String) verifier.loadFile( verifier.getBasedir(), verifier.getLogFileName(), false ).get( 1 );
assertTrue( line, line.matches( "^Apache Maven (.*?) \\(r[0-9]+; .*\\)$" ) );
assertTrue( line, line.matches( "^Apache Maven (.*?) \\(r[0-9]+; .*\\)$" ) || line.matches( "^Apache Maven (.*?) \\(rNON-CANONICAL_[-_0-9]+.+?; .*\\)$" ) );
// check timestamp parses
String timestamp = line.substring( line.lastIndexOf( ';' ) + 1, line.length() - 1 ).trim();