diff --git a/core/src/main/java/hudson/FilePath.java b/core/src/main/java/hudson/FilePath.java index aa49b75d8d..13c8ed1785 100644 --- a/core/src/main/java/hudson/FilePath.java +++ b/core/src/main/java/hudson/FilePath.java @@ -7,6 +7,7 @@ import hudson.remoting.RemoteOutputStream; import hudson.remoting.VirtualChannel; import hudson.remoting.DelegatingCallable; import hudson.util.IOException2; +import hudson.util.FormFieldValidator; import hudson.model.Hudson; import hudson.model.TaskListener; import hudson.Launcher.LocalLauncher; @@ -713,9 +714,13 @@ public final class FilePath implements Serializable { * Validates the ant file mask (like "foo/bar/*.txt") * against this directory, and try to point out the problem. * + *
+ * This is useful in conjunction with {@link FormFieldValidator}.
+ *
* @return
* null if no error was found.
* @since 1.90
+ * @see FormFieldValidator.WorkspaceFileMask
*/
public String validateAntFileMask(final String fileMask) throws IOException, InterruptedException {
return act(new FileCallable