[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
This commit is contained in:
kohsuke committed 2009-04-21 00:13:54 +00:00
1 parent 1a6d0d6e56
commit cc68d4a182
1 file changed
+2 -2
+2 -2
View File
@@ -1143,7 +1143,7 @@ public final class FilePath implements Serializable {
Future<Void> future = target.actAsync(new FileCallable<Void>() {
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);