diff --git a/core/src/main/java/hudson/scm/CVSSCM.java b/core/src/main/java/hudson/scm/CVSSCM.java index 1b30988ebcdf47798bc30704f4205ce2f4932dca..8f6f6e9225413cc053dc39572365b969ca0dc7d9 100644 --- a/core/src/main/java/hudson/scm/CVSSCM.java +++ b/core/src/main/java/hudson/scm/CVSSCM.java @@ -35,6 +35,7 @@ import org.apache.tools.zip.ZipEntry; import org.apache.tools.zip.ZipOutputStream; import org.kohsuke.stapler.StaplerRequest; import org.kohsuke.stapler.StaplerResponse; +import org.kohsuke.stapler.DataBoundConstructor; import javax.servlet.ServletException; import javax.servlet.http.HttpServletResponse; @@ -117,14 +118,12 @@ public class CVSSCM extends SCM implements Serializable { private boolean isTag; - /** - * @stapler-constructor - */ - public CVSSCM(String cvsroot, String module,String branch,String cvsRsh,boolean canUseUpdate, boolean legacy, boolean isTag) { + @DataBoundConstructor + public CVSSCM(String cvsRoot, String module,String branch,String cvsRsh,boolean canUseUpdate, boolean legacy, boolean isTag) { if(fixNull(branch).equals("HEAD")) branch = null; - this.cvsroot = cvsroot; + this.cvsroot = cvsRoot; this.module = module.trim(); this.branch = nullify(branch); this.cvsRsh = nullify(cvsRsh); @@ -1084,7 +1083,7 @@ public class CVSSCM extends SCM implements Serializable { *

* Also checks if .cvspass file contains the entry for this. */ - public void doCvsrootCheck(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { + public void doCheckCvsRoot(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { new FormFieldValidator(req,rsp,false) { protected void check() throws IOException, ServletException { String v = fixEmpty(request.getParameter("value")); diff --git a/core/src/main/resources/hudson/scm/CVSSCM/config.jelly b/core/src/main/resources/hudson/scm/CVSSCM/config.jelly index 07501a82212c775abd84ee7daedd039a78dc11e7..ee031c05b2400fd4ed020233bc12f30e8f9d0a39 100644 --- a/core/src/main/resources/hudson/scm/CVSSCM/config.jelly +++ b/core/src/main/resources/hudson/scm/CVSSCM/config.jelly @@ -1,9 +1,6 @@ - + diff --git a/core/src/main/resources/lib/form/editableComboBox.jelly b/core/src/main/resources/lib/form/editableComboBox.jelly index 613ceb794b44dcda897c1504971bca99b1da5891..1fe20844e99a60e7b1ab79cb54d23ea591e47f62 100644 --- a/core/src/main/resources/lib/form/editableComboBox.jelly +++ b/core/src/main/resources/lib/form/editableComboBox.jelly @@ -1,21 +1,30 @@ - - +