hudson.plugins.tfs
Class TfTool

java.lang.Object
  extended by hudson.plugins.tfs.TfTool

public class TfTool
extends java.lang.Object

Class that encapsulates the Team Foundation command client.

Author:
Erik Ramfelt

Constructor Summary
TfTool(java.lang.String executable, hudson.Launcher launcher, hudson.model.TaskListener listener, hudson.FilePath workspace)
           
 
Method Summary
 java.io.Reader execute(java.lang.String[] arguments)
          Execute the arguments, and return the console output as a Reader
 java.io.Reader execute(java.lang.String[] arguments, boolean[] masks)
          Execute the arguments, and return the console output as a Reader
 java.lang.String getHostname()
          Returns the host name of the computer that is running the TF tool
 hudson.model.TaskListener getListener()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TfTool

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

getListener

public hudson.model.TaskListener getListener()

getHostname

public java.lang.String getHostname()
                             throws java.io.IOException,
                                    java.lang.InterruptedException
Returns the host name of the computer that is running the TF tool

Returns:
the host name; or null if there was a problem looking it up
Throws:
java.io.IOException
java.lang.InterruptedException

execute

public java.io.Reader execute(java.lang.String[] arguments)
                       throws java.io.IOException,
                              java.lang.InterruptedException
Execute the arguments, and return the console output as a Reader

Parameters:
arguments - arguments to send to the command-line client.
Returns:
a Reader containing the console output
Throws:
java.io.IOException
java.lang.InterruptedException

execute

public java.io.Reader execute(java.lang.String[] arguments,
                              boolean[] masks)
                       throws java.io.IOException,
                              java.lang.InterruptedException
Execute the arguments, and return the console output as a Reader

Parameters:
arguments - arguments to send to the command-line client.
masks - which of the commands that should be masked from the console.
Returns:
a Reader containing the console output
Throws:
java.io.IOException
java.lang.InterruptedException


Copyright © 2009. All Rights Reserved.