本文整理了Java中hudson.FilePath.validateRelativeDirectory()
方法的一些代码示例,展示了FilePath.validateRelativeDirectory()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FilePath.validateRelativeDirectory()
方法的具体详情如下:
包路径:hudson.FilePath
类名称: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();
}
内容来源于网络,如有侵权,请联系作者删除!