本文整理了Java中hudson.FilePath.untarFrom()
方法的一些代码示例,展示了FilePath.untarFrom()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FilePath.untarFrom()
方法的具体详情如下:
包路径:hudson.FilePath
类名称:FilePath
方法名:untarFrom
[英]Reads the given InputStream as a tar file and extracts it into this directory.
[中]将给定的InputStream作为tar文件读取,并将其提取到此目录中。
代码示例来源:origin: jenkinsci/jenkins
unzipFrom(cis);
else
untarFrom(cis,GZIP);
} catch (IOException e) {
throw new IOException(String.format("Failed to unpack %s (%d bytes read of total %d)",
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
unzipFrom(cis);
else
untarFrom(cis,GZIP);
} catch (IOException e) {
throw new IOException(String.format("Failed to unpack %s (%d bytes read of total %d)",
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
unzipFrom(cis);
else
untarFrom(cis,GZIP);
} catch (IOException e) {
throw new IOException2(String.format("Failed to unpack %s (%d bytes read of total %d)",
代码示例来源:origin: com.cisco.step.jenkins.plugins/jenkow-plugin
@Override
public Repository openRepository() throws IOException {
File rd = getRepositoryDir();
// TODO 7: should we cache r here? Who will be closing r?
FileRepository r = new FileRepositoryBuilder().setWorkTree(rd).build();
if (!r.getObjectDatabase().exists()){
r.create();
try {
new FilePath(rd).untarFrom(JenkowWorkflowRepository.class.getResourceAsStream("/jenkow-repository-seed.tar"),FilePath.TarCompression.NONE);
} catch (InterruptedException e1) {
LOGGER.log(Level.WARNING, "Seeding of jenkow-repository failed",e1);
}
addAndCommit(r,".","Initial import of the existing contents");
}
return r;
}
代码示例来源:origin: hudson/hudson-2.x
unzipFrom(cis);
else
untarFrom(cis,GZIP);
} catch (IOException e) {
throw new IOException2(String.format("Failed to unpack %s (%d bytes read of total %d)",
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
unzipFrom(cis);
else
untarFrom(cis,GZIP);
} catch (IOException e) {
throw new IOException2(String.format("Failed to unpack %s (%d bytes read of total %d)",
代码示例来源:origin: org.eclipse.hudson/hudson-core
unzipFrom(cis);
} else {
untarFrom(cis, GZIP);
内容来源于网络,如有侵权,请联系作者删除!