You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2020/01/26 22:30:20 UTC
[maven-integration-testing] branch MNG-5669 updated: [MNG-5669]
'Picked up JAVA_TOOL_OPTIONS' doesn't have to appear as first
This is an automated email from the ASF dual-hosted git repository.
rfscholte pushed a commit to branch MNG-5669
in repository https://gitbox.apache.org/repos/asf/maven-integration-testing.git
The following commit(s) were added to refs/heads/MNG-5669 by this push:
new 0bef2b1 [MNG-5669] 'Picked up JAVA_TOOL_OPTIONS' doesn't have to appear as first
0bef2b1 is described below
commit 0bef2b162fa278064db8114076ef9c7a0d4cd580
Author: rfscholte <rf...@apache.org>
AuthorDate: Sun Jan 26 23:30:10 2020 +0100
[MNG-5669] 'Picked up JAVA_TOOL_OPTIONS' doesn't have to appear as first
---
.../test/java/org/apache/maven/it/MavenITmng5669ReadPomsOnce.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5669ReadPomsOnce.java b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5669ReadPomsOnce.java
index a6ad436..26944d2 100644
--- a/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5669ReadPomsOnce.java
+++ b/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng5669ReadPomsOnce.java
@@ -65,9 +65,13 @@ public class MavenITmng5669ReadPomsOnce
verifier.resetStreams();
List<String> logTxt = verifier.loadLines( "log.txt", "utf-8" );
- if ( logTxt.get( 0 ).startsWith( "Picked up JAVA_TOOL_OPTIONS:" ) )
+ for ( String line : logTxt )
{
- logTxt.remove( 0 );
+ if ( line.startsWith( "Picked up JAVA_TOOL_OPTIONS:" ) )
+ {
+ logTxt.remove( line );
+ break;
+ }
}
assertEquals( logTxt.toString(), 168, logTxt.size() );