From cc68d4a182aee3bc7d6501a11de2a3f4938a55f4 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Tue, 21 Apr 2009 00:13:54 +0000 Subject: [PATCH] [HUDSON-2154] Adding more error diagnostic report in an attempt to find out a root cause. This change should let us see what's in the stream. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@17320 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/FilePath.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/hudson/FilePath.java b/core/src/main/java/hudson/FilePath.java index 3d2bd461ac..4e9144bc46 100644 --- a/core/src/main/java/hudson/FilePath.java +++ b/core/src/main/java/hudson/FilePath.java @@ -1143,7 +1143,7 @@ public final class FilePath implements Serializable { Future future = target.actAsync(new FileCallable() { public Void invoke(File f, VirtualChannel channel) throws IOException { try { - readFromTar(remote+'/'+fileMask, f,new GZIPInputStream(pipe.getIn())); + readFromTar(remote+'/'+fileMask, f,TarCompression.GZIP.extract(pipe.getIn())); return null; } finally { pipe.getIn().close(); @@ -1171,7 +1171,7 @@ public final class FilePath implements Serializable { } }); try { - readFromTar(remote+'/'+fileMask,new File(target.remote),new GZIPInputStream(pipe.getIn())); + readFromTar(remote+'/'+fileMask,new File(target.remote),TarCompression.GZIP.extract(pipe.getIn())); } catch (IOException e) {// BuildException or IOException try { future.get(3,TimeUnit.SECONDS); -- GitLab