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

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

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

FilePath.validateRelativeDirectory介绍

[英]A convenience method over #validateRelativePath(String,boolean,boolean).
[中]#validateRelativePath(字符串、布尔值、布尔值)上的一种简便方法。

代码示例

代码示例来源:origin: jenkinsci/jenkins

public FormValidation validateRelativeDirectory(String value) throws IOException {
  return validateRelativeDirectory(value,true);
}

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

public FormValidation validateRelativeDirectory(String value) throws IOException {
  return validateRelativeDirectory(value,true);
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

public FormValidation validateRelativeDirectory(String value) throws IOException {
  return validateRelativeDirectory(value,true);
}

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

public FormValidation validateRelativeDirectory(String value) throws IOException {
  return validateRelativeDirectory(value,true);
}

代码示例来源:origin: org.eclipse.hudson/hudson-core

public FormValidation validateRelativeDirectory(String value) throws IOException {
  return validateRelativeDirectory(value, true);
}

代码示例来源:origin: hudson/hudson-2.x

public FormValidation validateRelativeDirectory(String value) throws IOException {
  return validateRelativeDirectory(value,true);
}

代码示例来源:origin: org.jenkins-ci.plugins/javadoc

/**
 * Performs on-the-fly validation on the file mask wildcard.
 */
public FormValidation doCheckJavadocDir(@AncestorInPath AbstractProject project, @QueryParameter String value) throws IOException, ServletException {
  if (project == null) {
    return FormValidation.ok();
  }
  FilePath ws = project.getSomeWorkspace();
  return ws != null ? ws.validateRelativeDirectory(value) : FormValidation.ok();
}

代码示例来源:origin: hudson/hudson-2.x

/**
 * Performs on-the-fly validation on the file mask wildcard.
 */
public FormValidation doCheck(@AncestorInPath AbstractProject project, @QueryParameter String value) throws IOException, ServletException {
  FilePath ws = project.getSomeWorkspace();
  return ws != null ? ws.validateRelativeDirectory(value) : FormValidation.ok();
}

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

/**
 * Performs on-the-fly validation on the file mask wildcard.
 */
public FormValidation doCheck(@AncestorInPath AbstractProject project, @QueryParameter String value) throws IOException, ServletException {
  FilePath ws = project.getSomeWorkspace();
  return ws != null ? ws.validateRelativeDirectory(value) : FormValidation.ok();
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

/**
 * Performs on-the-fly validation on the file mask wildcard.
 */
public FormValidation doCheck(@AncestorInPath AbstractProject project, @QueryParameter String value) throws IOException, ServletException {
  FilePath ws = project.getSomeWorkspace();
  return ws != null ? ws.validateRelativeDirectory(value) : FormValidation.ok();
}

代码示例来源:origin: org.eclipse.hudson/hudson-core

/**
 * Performs on-the-fly validation on the file mask wildcard.
 */
public FormValidation doCheck(@AncestorInPath AbstractProject project, @QueryParameter String value) throws IOException, ServletException {
  FilePath ws = project.getSomeWorkspace();
  return ws != null ? ws.validateRelativeDirectory(value) : FormValidation.ok();
}

代码示例来源:origin: jenkinsci/htmlpublisher-plugin

/**
 * Performs on-the-fly validation on the file mask wildcard.
 */
public FormValidation doCheck(@AncestorInPath AbstractProject project,
    @QueryParameter String value) throws IOException, ServletException {
  FilePath ws = project.getSomeWorkspace();
  return ws != null ? ws.validateRelativeDirectory(value) : FormValidation.ok();
}

相关文章