hudson.plugins.clearcase
Class ClearToolExec

java.lang.Object
  extended by hudson.plugins.clearcase.ClearToolExec
All Implemented Interfaces:
ClearTool
Direct Known Subclasses:
ClearToolDynamic, ClearToolDynamicUCM, ClearToolSnapshot

public abstract class ClearToolExec
extends java.lang.Object
implements ClearTool


Field Summary
protected  ClearToolLauncher launcher
           
protected  hudson.util.VariableResolver variableResolver
           
 
Constructor Summary
ClearToolExec(hudson.util.VariableResolver variableResolver, ClearToolLauncher launcher)
           
 
Method Summary
 java.lang.String catcs(java.lang.String viewName)
          Retrives the config spec for the specified viewname
 ClearToolLauncher getLauncher()
          Get the inner CLearToolLauncher.
protected abstract  hudson.FilePath getRootViewPath(ClearToolLauncher launcher)
           
 java.io.Reader lsactivity(java.lang.String activity, java.lang.String commandFormat, java.lang.String viewname)
          Lists activities .......(?)
 java.io.Reader lshistory(java.lang.String format, java.util.Date lastBuildDate, java.lang.String viewName, java.lang.String branch, java.lang.String[] viewPaths)
          Returns Reader containing output from lshistory.
 java.util.List<java.lang.String> lsview(boolean onlyActiveDynamicViews)
          Lists view registry entries.
 java.util.List<java.lang.String> lsvob(boolean onlyMOunted)
          Lists VOB registry entries
 void mklabel(java.lang.String viewName, java.lang.String label)
          Attaches version labels to versions of elements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.plugins.clearcase.ClearTool
mkview, rmview, rmviewtag, setcs, startView, syncronizeViewWithStream, update
 

Field Detail

launcher

protected ClearToolLauncher launcher

variableResolver

protected hudson.util.VariableResolver variableResolver
Constructor Detail

ClearToolExec

public ClearToolExec(hudson.util.VariableResolver variableResolver,
                     ClearToolLauncher launcher)
Method Detail

getLauncher

public ClearToolLauncher getLauncher()
Description copied from interface: ClearTool
Get the inner CLearToolLauncher.

Specified by:
getLauncher in interface ClearTool
Returns:
The inner CLearToolLauncher.

getRootViewPath

protected abstract hudson.FilePath getRootViewPath(ClearToolLauncher launcher)

lshistory

public java.io.Reader lshistory(java.lang.String format,
                                java.util.Date lastBuildDate,
                                java.lang.String viewName,
                                java.lang.String branch,
                                java.lang.String[] viewPaths)
                         throws java.io.IOException,
                                java.lang.InterruptedException
Description copied from interface: ClearTool
Returns Reader containing output from lshistory.

Specified by:
lshistory in interface ClearTool
Parameters:
format - format that should be used by the lshistory command
lastBuildDate - lists events recorded since (that is, at or after) the specified date-time
viewName - the name of the view
branch - the name of the branch to get history events for; if null then history events for all branches are listed
viewPaths - view paths that should be added to the lshistory command. The view paths must be relative.
Returns:
Reader containing output from command
Throws:
java.io.IOException
java.lang.InterruptedException

lsactivity

public java.io.Reader lsactivity(java.lang.String activity,
                                 java.lang.String commandFormat,
                                 java.lang.String viewname)
                          throws java.io.IOException,
                                 java.lang.InterruptedException
Description copied from interface: ClearTool
Lists activities .......(?)

Specified by:
lsactivity in interface ClearTool
Returns:
reader containing command output
Throws:
java.io.IOException
java.lang.InterruptedException

mklabel

public void mklabel(java.lang.String viewName,
                    java.lang.String label)
             throws java.io.IOException,
                    java.lang.InterruptedException
Description copied from interface: ClearTool
Attaches version labels to versions of elements

Specified by:
mklabel in interface ClearTool
Parameters:
viewName - the name of the view
label - the label name
Throws:
java.io.IOException
java.lang.InterruptedException

lsview

public java.util.List<java.lang.String> lsview(boolean onlyActiveDynamicViews)
                                        throws java.io.IOException,
                                               java.lang.InterruptedException
Description copied from interface: ClearTool
Lists view registry entries. This command needs to be run inside a view.

Specified by:
lsview in interface ClearTool
Parameters:
onlyActiveDynamicViews - true for only return active dynamic views; false all views are returned
Returns:
list of view names
Throws:
java.io.IOException
java.lang.InterruptedException

lsvob

public java.util.List<java.lang.String> lsvob(boolean onlyMOunted)
                                       throws java.io.IOException,
                                              java.lang.InterruptedException
Description copied from interface: ClearTool
Lists VOB registry entries

Specified by:
lsvob in interface ClearTool
Parameters:
onlyMOunted - true for only return mounted vobs; false all vobs are returned
Returns:
list of vob names
Throws:
java.io.IOException
java.lang.InterruptedException

catcs

public java.lang.String catcs(java.lang.String viewName)
                       throws java.io.IOException,
                              java.lang.InterruptedException
Description copied from interface: ClearTool
Retrives the config spec for the specified viewname

Specified by:
catcs in interface ClearTool
Parameters:
viewName - the name of the view
Returns:
a string containing the config spec
Throws:
java.io.IOException
java.lang.InterruptedException


Copyright © 2009. All Rights Reserved.