提交 b0d63631 编写于 作者: K kohsuke

modernized by using form field binding and convention over configuration for help files

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15879 71c3de6d-444a-0410-be80-ed276b4c234a
上级 cfb52bfb
......@@ -165,14 +165,10 @@ public class ArtifactArchiver extends Recorder {
return Messages.ArtifactArchiver_DisplayName();
}
public String getHelpFile() {
return "/help/project-config/archive-artifact.html";
}
/**
* Performs on-the-fly validation on the file mask wildcard.
*/
public void doCheck(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException {
public void doCheckArtifacts(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException {
new FormFieldValidator.WorkspaceFileMask(req,rsp).process();
}
......
......@@ -23,16 +23,15 @@ THE SOFTWARE.
-->
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<f:entry title="${%Files to archive}" help="/help/tasks/artifactArchiver/includes.html">
<f:textbox name="artifacts.artifacts" value="${instance.artifacts}"
checkUrl="'descriptorByName/ArtifactArchiver/check?value='+escape(this.value)" />
<f:entry title="${%Files to archive}" field="artifacts">
<f:textbox />
</f:entry>
<f:advanced>
<f:entry title="${%Excludes}" help="/help/tasks/artifactArchiver/excludes.html">
<f:textbox name="artifacts.excludes" value="${instance.excludes}"/>
<f:entry title="${%Excludes}" field="excludes">
<f:textbox />
</f:entry>
<f:entry title="" help="/help/tasks/artifactArchiver/latestOnly.html">
<f:checkbox name="artifacts.latestOnly" checked="${instance.latestOnly}" />
<f:entry title="" field="latestOnly" >
<f:checkbox />
<label class="attach-previous">${%lastBuildOnly}</label>
</f:entry>
</f:advanced>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册