Ignore line 'Picked up JAVA_TOOL_OPTIONS:' while parsing output
authorrfscholte <rfscholte@apache.org>
Mon, 30 Jul 2018 21:27:46 +0000 (23:27 +0200)
committerrfscholte <rfscholte@apache.org>
Mon, 30 Jul 2018 21:27:46 +0000 (23:27 +0200)
src/main/java/org/apache/maven/plugins/jdeps/AbstractJDepsMojo.java

index 6be3360..110b868 100644 (file)
@@ -493,7 +493,17 @@ public abstract class AbstractJDepsMojo
         }\r
 \r
         \r
-        CommandLineUtils.StringStreamConsumer err = new CommandLineUtils.StringStreamConsumer();\r
+        CommandLineUtils.StringStreamConsumer err = new CommandLineUtils.StringStreamConsumer()\r
+        {\r
+            @Override\r
+            public void consumeLine( String line )\r
+            {\r
+                if ( !line.startsWith( "Picked up JAVA_TOOL_OPTIONS:" ) )\r
+                {\r
+                    super.consumeLine( line );\r
+                }\r
+            }\r
+        };\r
         CommandLineUtils.StringStreamConsumer out;\r
         if ( consumer != null )\r
         {\r