hudson.plugins.clearcase
Class HudsonClearToolLauncher

java.lang.Object
  extended by hudson.plugins.clearcase.HudsonClearToolLauncher
All Implemented Interfaces:
ClearToolLauncher

public class HudsonClearToolLauncher
extends java.lang.Object
implements ClearToolLauncher

Class for executing the cleartool commands in the Hudson instance.


Constructor Summary
HudsonClearToolLauncher(java.lang.String scmName, hudson.model.TaskListener listener, hudson.FilePath workspace, hudson.Launcher launcher)
           
 
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[] cmd, java.io.InputStream inputStream, java.io.OutputStream outputStream, hudson.FilePath filePath)
          Launches a command
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HudsonClearToolLauncher

public HudsonClearToolLauncher(java.lang.String scmName,
                               hudson.model.TaskListener listener,
                               hudson.FilePath workspace,
                               hudson.Launcher launcher)
Method Detail

getListener

public hudson.model.TaskListener getListener()
Description copied from interface: ClearToolLauncher
Returns a task listener for a hudson job

Specified by:
getListener in interface ClearToolLauncher
Returns:
a task listener

getWorkspace

public hudson.FilePath getWorkspace()
Description copied from interface: ClearToolLauncher
Returns the workspace file path for a hudson job

Specified by:
getWorkspace in interface ClearToolLauncher
Returns:
the workspace file path

run

public boolean run(java.lang.String[] cmd,
                   java.io.InputStream inputStream,
                   java.io.OutputStream outputStream,
                   hudson.FilePath filePath)
            throws java.io.IOException,
                   java.lang.InterruptedException
Description copied from interface: ClearToolLauncher
Launches a command

Specified by:
run in interface ClearToolLauncher
Parameters:
cmd - the command to launch
inputStream - optional, if the command should be able to receive input
outputStream - optional, can be used to gather the output stream
filePath - 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


Copyright © 2008. All Rights Reserved.