hudson.FilePath.mode()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(115)

本文整理了Java中hudson.FilePath.mode()方法的一些代码示例,展示了FilePath.mode()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FilePath.mode()方法的具体详情如下:
包路径:hudson.FilePath
类名称:FilePath
方法名:mode

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);

相关文章