本文整理了Java中hudson.FilePath.mode()
方法的一些代码示例,展示了FilePath.mode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FilePath.mode()
方法的具体详情如下:
包路径:hudson.FilePath
类名称:FilePath
方法名:mode
[英]Gets the file permission bit mask.
[中]获取文件权限位掩码。
代码示例来源:origin: jenkinsci/jenkins
@Override public int mode() throws IOException {
try {
return f.mode();
} catch (InterruptedException | PosixException x) {
throw new IOException(x);
}
}
@Override public long lastModified() throws IOException {
代码示例来源:origin: jenkinsci/jenkins
/**
* Copies this file to the specified target, with file permissions and other meta attributes intact.
* @since 1.311
*/
public void copyToWithPermission(FilePath target) throws IOException, InterruptedException {
// Use NIO copy with StandardCopyOption.COPY_ATTRIBUTES when copying on the same machine.
if (this.channel == target.channel) {
act(new CopyToWithPermission(target));
return;
}
copyTo(target);
// copy file permission
target.chmod(mode());
target.setLastModifiedIfPossible(lastModified());
}
private class CopyToWithPermission extends SecureFileCallable<Void> {
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
/**
* Copies this file to the specified target, with file permissions intact.
* @since 1.311
*/
public void copyToWithPermission(FilePath target) throws IOException, InterruptedException {
copyTo(target);
// copy file permission
target.chmod(mode());
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
/**
* Copies this file to the specified target, with file permissions intact.
*
* @since 1.311
*/
public void copyToWithPermission(FilePath target) throws IOException, InterruptedException {
copyTo(target);
// copy file permission
target.chmod(mode());
}
代码示例来源:origin: hudson/hudson-2.x
/**
* Copies this file to the specified target, with file permissions intact.
* @since 1.311
*/
public void copyToWithPermission(FilePath target) throws IOException, InterruptedException {
copyTo(target);
// copy file permission
target.chmod(mode());
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
/**
* Copies this file to the specified target, with file permissions intact.
* @since 1.311
*/
public void copyToWithPermission(FilePath target) throws IOException, InterruptedException {
copyTo(target);
// copy file permission
target.chmod(mode());
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
/**
* Copies this file to the specified target, with file permissions and other meta attributes intact.
* @since 1.311
*/
public void copyToWithPermission(FilePath target) throws IOException, InterruptedException {
copyTo(target);
// copy file permission
target.chmod(mode());
target.setLastModifiedIfPossible(lastModified());
}
代码示例来源:origin: jenkinsci/copyartifact-plugin
d.chmod(s.mode());
} catch (PosixException x) {
LOGGER.log(Level.WARNING, "could not check mode of " + s, x);
内容来源于网络,如有侵权,请联系作者删除!