You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2020/04/08 08:22:14 UTC

[maven-surefire] 06/18: fixed the IT 735

This is an automated email from the ASF dual-hosted git repository.

tibordigana pushed a commit to branch maven2surefire-jvm-communication
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git

commit 93dfd0ef984192c6cfe5cc29c1d93bc0180c5200
Author: tibordigana <ti...@apache.org>
AuthorDate: Sun Mar 22 04:37:20 2020 +0100

    fixed the IT 735
---
 .../apache/maven/surefire/extensions/util/CommandlineStreams.java    | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/util/CommandlineStreams.java b/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/util/CommandlineStreams.java
index 18dae45..cb57b9c 100644
--- a/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/util/CommandlineStreams.java
+++ b/surefire-extensions-api/src/main/java/org/apache/maven/surefire/extensions/util/CommandlineStreams.java
@@ -24,6 +24,7 @@ import java.io.Closeable;
 import java.io.IOException;
 import java.io.InputStream;
 import java.nio.channels.Channel;
+import java.nio.channels.ClosedChannelException;
 import java.nio.channels.ReadableByteChannel;
 import java.nio.channels.WritableByteChannel;
 
@@ -80,5 +81,9 @@ public final class CommandlineStreams implements Closeable
         {
             closed = true;
         }
+        catch ( ClosedChannelException e )
+        {
+            // already closed externally
+        }
     }
 }