/** * The base directory from which the path name is resolved. */ protected FilePath getBaseDirectory(AbstractProject<?,?> p) { return p.getSomeWorkspace(); } }
/** * The base directory from which the path name is resolved. */ protected FilePath getBaseDirectory(AbstractProject<?,?> p) { return p.getSomeWorkspace(); } }
public FormValidation doCheckTargets(@AncestorInPath AbstractProject<?,?> project, @QueryParameter String value) throws IOException { if (project == null) { return FormValidation.ok(); } return FilePath.validateFileMask(project.getSomeWorkspace(),value); }
/** * Performs on-the-fly validation of the file mask wildcard, when the artifacts * textbox or the caseSensitive checkbox are modified */ public FormValidation doCheckArtifacts(@AncestorInPath AbstractProject project, @QueryParameter String value, @QueryParameter(value = "caseSensitive") String caseSensitive) throws IOException { if (project == null) { return FormValidation.ok(); } // defensive approach to remain case sensitive in doubtful situations boolean bCaseSensitive = caseSensitive == null || !"false".equals(caseSensitive); return FilePath.validateFileMask(project.getSomeWorkspace(), value, bCaseSensitive); }
/** * Serves the workspace files. */ public DirectoryBrowserSupport doWs( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException, InterruptedException { checkPermission(Item.WORKSPACE); FilePath ws = getSomeWorkspace(); if ((ws == null) || (!ws.exists())) { // if there's no workspace, report a nice error message // Would be good if when asked for *plain*, do something else! // (E.g. return 404, or send empty doc.) // Not critical; client can just check if content type is not text/plain, // which also serves to detect old versions of Hudson. req.getView(this,"noWorkspace.jelly").forward(req,rsp); return null; } else { Computer c = ws.toComputer(); String title; if (c == null) { title = Messages.AbstractProject_WorkspaceTitle(getDisplayName()); } else { title = Messages.AbstractProject_WorkspaceTitleOnComputer(getDisplayName(), c.getDisplayName()); } return new DirectoryBrowserSupport(this, ws, title, "folder.png", true); } }
/** * The base directory from which the path name is resolved. */ protected FilePath getBaseDirectory(AbstractProject<?,?> p) { return p.getSomeWorkspace(); } }
/** * The base directory from which the path name is resolved. */ protected FilePath getBaseDirectory(AbstractProject<?,?> p) { return p.getSomeWorkspace(); } }
/** * The base directory from which the path name is resolved. */ protected FilePath getBaseDirectory(AbstractProject<?, ?> p) { return p.getSomeWorkspace(); } }
/** * The base directory from which the path name is resolved. */ protected FilePath getBaseDirectory(AbstractProject<?,?> p) { return p.getSomeWorkspace(); } }
/** * The base directory from which the path name is resolved. */ protected FilePath getBaseDirectory(AbstractProject<?,?> p) { return p.getSomeWorkspace(); } }
/** * Performs on-the-fly validation on the file mask wildcard. */ public FormValidation doCheckArtifacts(@AncestorInPath AbstractProject project, @QueryParameter String artifacts, @QueryParameter boolean force) throws IOException { if (!force) { return FormValidation.ok(); } return FilePath.validateFileMask(project.getSomeWorkspace(), artifacts); }
public FormValidation doCheckTargets(@AncestorInPath AbstractProject<?,?> project, @QueryParameter String value) throws IOException { if (project == null) { return FormValidation.ok(); } return FilePath.validateFileMask(project.getSomeWorkspace(),value); }
/** * 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(); }
public FormValidation doCheckIncludes( @AncestorInPath final AbstractProject project, @QueryParameter final String value) throws IOException { if (project == null) { return FormValidation.ok(); } return FilePath.validateFileMask(project.getSomeWorkspace(), value); } }
/** * 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(); }
/** * 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(); }
/** * Performs on-the-fly validation on the file mask wildcard. */ public FormValidation doCheckTestResults(@AncestorInPath AbstractProject project, @QueryParameter String value) throws IOException { return FilePath.validateFileMask(project.getSomeWorkspace(), value); }
/** * Performs on-the-fly validation on the file mask wildcard. */ public FormValidation doCheckTestResults( @AncestorInPath AbstractProject project, @QueryParameter String value) throws IOException { return FilePath.validateFileMask(project.getSomeWorkspace(), value); }
/** * Performs on-the-fly validation on the file mask wildcard. */ public FormValidation doCheck(@AncestorInPath AbstractProject project, @QueryParameter String value) throws IOException { return FilePath.validateFileMask(project.getSomeWorkspace(), value); }
@Override public FormValidation doCheckPattern(@AncestorInPath final AbstractProject<?, ?> project, @QueryParameter final String pattern) throws IOException { FormValidation required = FormValidation.validateRequired(pattern); if (required.kind == FormValidation.Kind.OK) { return FilePath.validateFileMask(project.getSomeWorkspace(), pattern); } else { return required; } }