aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sokolovsky <paul.sokolovsky@linaro.org>2011-12-05 17:32:41 +0200
committerPaul Sokolovsky <paul.sokolovsky@linaro.org>2011-12-05 17:32:41 +0200
commit430ceb991b8d05e95acb0d6a642861f09ec86eae (patch)
tree4f47ffe62fe28357724feb9252c3bb15427d72ca
parenta5c345c2fd0d50eff90500061023c12b5ed9538c (diff)
downloadjenkins-plugin-shell-status-430ceb991b8d05e95acb0d6a642861f09ec86eae.tar.gz
Rename to ShellWithStatus.
-rw-r--r--src/main/java/hudson/plugins/shell/ShellWithStatus.java (renamed from src/main/java/hudson/plugins/shell/Shell.java)11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main/java/hudson/plugins/shell/Shell.java b/src/main/java/hudson/plugins/shell/ShellWithStatus.java
index efcef45..9b564fe 100644
--- a/src/main/java/hudson/plugins/shell/Shell.java
+++ b/src/main/java/hudson/plugins/shell/ShellWithStatus.java
@@ -21,7 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
-package hudson.tasks;
+package hudson.plugins.shell;
import hudson.FilePath;
import hudson.Functions;
@@ -47,9 +47,9 @@ import java.util.logging.Logger;
*
* @author Kohsuke Kawaguchi
*/
-public class Shell extends CommandInterpreter {
+public class ShellWithStatus extends CommandInterpreter {
@DataBoundConstructor
- public Shell(String command) {
+ public ShellWithStatus(String command) {
super(fixCrLf(command));
}
@@ -176,7 +176,7 @@ public class Shell extends CommandInterpreter {
@Override
public Builder newInstance(StaplerRequest req, JSONObject data) {
- return new Shell(data.getString("command"));
+ return new ShellWithStatus(data.getString("command"));
}
@Override
@@ -204,8 +204,9 @@ public class Shell extends CommandInterpreter {
}
- private static final Logger LOGGER = Logger.getLogger(Shell.class.getName());
+ private static final Logger LOGGER = Logger.getLogger(ShellWithStatus.class.getName());
+ @Override
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, TaskListener listener) throws InterruptedException {
FilePath ws = build.getWorkspace();
FilePath script=null;