@Override public Void invoke(File dir, VirtualChannel channel) throws IOException, InterruptedException { try (InputStream in = archive.openStream()) { CountingInputStream cis = new CountingInputStream(in); try { if (archive.toExternalForm().endsWith(".zip")) { unzip(dir, cis); } else { readFromTar("input stream", dir, GZIP.extract(cis)); } } catch (IOException x) { throw new IOException(String.format("Failed to unpack %s (%d bytes read)", archive, cis.getByteCount()), x); } } return null; } }
readFromTar(remote + '/' + description,new File(target.remote),TarCompression.GZIP.extract(pipe.getIn())); } catch (IOException e) {// BuildException or IOException try {
public Void invoke(File f, VirtualChannel channel) throws IOException { try { readFromTar(f, flatten, TarCompression.GZIP.extract(pipe.getIn())); return null; } finally { pipe.getIn().close(); } } });
public Void invoke(File f, VirtualChannel channel) throws IOException { try { readFromTar(remote + '/' + fileMask, f, (remoteCompressionType != null ? remoteCompressionType.extract(pipe.getIn()) : FilePath.TarCompression.GZIP.extract(pipe.getIn())), nativeUtils); return null; } finally { pipe.getIn().close(); } } });
public Void invoke(File dir, VirtualChannel channel) throws IOException { readFromTar("input stream",dir, compression.extract(in)); return null; } private static final long serialVersionUID = 1L;
public Void invoke(File f, VirtualChannel channel) throws IOException { try (InputStream in = pipe.getIn()) { readFromTar(remote + '/' + description, f,TarCompression.GZIP.extract(in)); return null; } } });
public Void invoke(File dir, VirtualChannel channel) throws IOException, InterruptedException { readFromTar(FilePath.this.getName(),dir,compression.extract(FilePath.this.read())); return null; } private static final long serialVersionUID = 1L;
public Void invoke(File dir, VirtualChannel channel) throws IOException { readFromTar("input stream",dir, compression.extract(in)); return null; } private static final long serialVersionUID = 1L;
public Void invoke(File f, VirtualChannel channel) throws IOException { try { readFromTar(remote + '/' + fileMask, f, (remoteCompressionType != null? remoteCompressionType.extract(pipe.getIn()) : FilePath.TarCompression.GZIP.extract(pipe.getIn()))); return null; } finally { pipe.getIn().close(); } } });
public Void invoke(File dir, VirtualChannel channel) throws IOException { readFromTar("input stream",dir, compression.extract(in)); return null; } private static final long serialVersionUID = 1L;
public Void invoke(File dir, VirtualChannel channel) throws IOException { readFromTar("input stream", dir, compression.extract(in), nativeUtils); return null; } private static final long serialVersionUID = 1L;
public Void invoke(File f, VirtualChannel channel) throws IOException { try { readFromTar(remote + '/' + fileMask, f, (remoteCompressionType != null? remoteCompressionType.extract(pipe.getIn()) : FilePath.TarCompression.GZIP.extract(pipe.getIn()))); return null; } finally { pipe.getIn().close(); } } });
public Void invoke(File dir, VirtualChannel channel) throws IOException { readFromTar(FilePath.this.getName(),dir,compression.extract(FilePath.this.read())); return null; } private static final long serialVersionUID = 1L;
public Void invoke(File f, VirtualChannel channel) throws IOException { try { readFromTar(remote + '/' + fileMask, f, (remoteCompressionType != null? remoteCompressionType.extract(pipe.getIn()) : FilePath.TarCompression.GZIP.extract(pipe.getIn()))); return null; } finally { pipe.getIn().close(); } } });
public Void invoke(File dir, VirtualChannel channel) throws IOException { readFromTar(FilePath.this.getName(),dir,compression.extract(FilePath.this.read())); return null; } private static final long serialVersionUID = 1L;
public Void invoke(File dir, VirtualChannel channel) throws IOException { readFromTar(FilePath.this.getName(), dir, compression.extract(FilePath.this.read()), nativeUtils); return null; } private static final long serialVersionUID = 1L;
@Override public Void invoke(File dir, VirtualChannel channel) throws IOException { readFromTar("input stream",dir, compression.extract(in)); return null; } private static final long serialVersionUID = 1L;
@Override public Void invoke(File dir, VirtualChannel channel) throws IOException, InterruptedException { readFromTar(FilePath.this.getName(), dir, compression.extract(FilePath.this.read())); return null; } private static final long serialVersionUID = 1L;
@Override public Void invoke(File dir, VirtualChannel channel) throws IOException, InterruptedException { readFromTar(FilePath.this.getName(), dir, compression.extract(in)); return null; } private static final long serialVersionUID = 1L;
@Override public Void invoke(File f, VirtualChannel channel) throws IOException { try (InputStream in = pipe.getIn()) { readFromTar(remote + '/' + description, f, TarCompression.GZIP.extract(in)); return null; } } }