diff --git a/core/src/main/java/hudson/tasks/BatchFile.java b/core/src/main/java/hudson/tasks/BatchFile.java index ef15e30405cea7e3aed97acc403a9d18aaacf8a0..c32e2ea7f905c24a9efed67187b652e91402dd53 100644 --- a/core/src/main/java/hudson/tasks/BatchFile.java +++ b/core/src/main/java/hudson/tasks/BatchFile.java @@ -1,7 +1,7 @@ /* * The MIT License * - * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi + * Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -27,6 +27,7 @@ import hudson.FilePath; import hudson.Extension; import hudson.model.AbstractProject; import net.sf.json.JSONObject; +import org.kohsuke.stapler.DataBoundConstructor; import org.kohsuke.stapler.StaplerRequest; /** @@ -35,6 +36,7 @@ import org.kohsuke.stapler.StaplerRequest; * @author Kohsuke Kawaguchi */ public class BatchFile extends CommandInterpreter { + @DataBoundConstructor public BatchFile(String command) { super(command); } diff --git a/core/src/main/java/hudson/tasks/Shell.java b/core/src/main/java/hudson/tasks/Shell.java index 9fe4d22c4b8597798838776ae77b9d254e965a8c..1787ec6a93ccc1fa50ceedea8568c49074a208ab 100644 --- a/core/src/main/java/hudson/tasks/Shell.java +++ b/core/src/main/java/hudson/tasks/Shell.java @@ -30,6 +30,7 @@ import hudson.Extension; import hudson.model.AbstractProject; import hudson.util.FormValidation; import net.sf.json.JSONObject; +import org.kohsuke.stapler.DataBoundConstructor; import org.kohsuke.stapler.StaplerRequest; import org.kohsuke.stapler.QueryParameter; @@ -43,6 +44,7 @@ import java.util.Arrays; * @author Kohsuke Kawaguchi */ public class Shell extends CommandInterpreter { + @DataBoundConstructor public Shell(String command) { super(fixCrLf(command)); }