hudson.plugins.clearcase
Interface ClearToolLauncher


public interface ClearToolLauncher

Interface to hide the Hudson launch parts so other parts can mock the actual launch.

Author:
Erik Ramfelt

Method Summary
 hudson.model.TaskListener getListener()
          Returns a task listener for a hudson job
 hudson.FilePath getWorkspace()
          Returns the workspace file path for a hudson job
 boolean run(java.lang.String[] cmds, java.io.InputStream in, java.io.OutputStream out, hudson.FilePath execPath)
          Launches a command
 

Method Detail

run

boolean run(java.lang.String[] cmds,
            java.io.InputStream in,
            java.io.OutputStream out,
            hudson.FilePath execPath)
            throws java.io.IOException,
                   java.lang.InterruptedException
Launches a command

Parameters:
cmds - the command to launch
in - optional, if the command should be able to receive input
out - optional, can be used to gather the output stream
execPath - optional, the path where the command should be launched
Returns:
true if the command was successful, false otherwise
Throws:
java.io.IOException
java.lang.InterruptedException

getListener

hudson.model.TaskListener getListener()
Returns a task listener for a hudson job

Returns:
a task listener

getWorkspace

hudson.FilePath getWorkspace()
Returns the workspace file path for a hudson job

Returns:
the workspace file path


Copyright © 2007. All Rights Reserved.