|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.clearcase.ClearToolExec
public abstract class ClearToolExec
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface hudson.plugins.clearcase.ClearTool |
|---|
ClearTool.DefaultPromotionLevel, ClearTool.DiffBlOptions, ClearTool.SetcsOption |
| Field Summary | |
|---|---|
protected ClearToolLauncher |
launcher
|
protected java.lang.String |
optionalMkviewParameters
|
protected hudson.util.VariableResolver<java.lang.String> |
variableResolver
|
| Constructor Summary | |
|---|---|
ClearToolExec(hudson.util.VariableResolver<java.lang.String> variableResolver,
ClearToolLauncher launcher,
java.lang.String optionalMkviewParameters)
|
|
| Method Summary | |
|---|---|
java.lang.String |
catcs(java.lang.String viewTag)
Retrieves the config spec for the specified view name |
java.io.Reader |
describe(java.lang.String format,
java.lang.String objectSelector)
Call the cleartool describe with the provided format on the specified object selector See http://www.ipnom.com/ClearCase-Commands/describe.html for valid options |
java.io.Reader |
diffbl(java.util.EnumSet<ClearTool.DiffBlOptions> type,
java.lang.String baseline1,
java.lang.String baseline2,
java.lang.String viewPath)
Call diffbl using the two provided baselines (can be stream or baseline) |
boolean |
doesStreamExist(java.lang.String streamSelector)
|
boolean |
doesViewExist(java.lang.String viewTag)
Checks whether the given view tag already exists in the ClearCase region. |
void |
endView(java.lang.String viewTag)
Ends the view |
ClearToolLauncher |
getLauncher()
Get the inner CLearToolLauncher. |
protected abstract hudson.FilePath |
getRootViewPath(ClearToolLauncher launcher)
|
java.util.Properties |
getViewData(java.lang.String viewTag)
Gets the view UUID, for thorough view deletion. |
boolean |
lock(java.lang.String comment,
java.lang.String objectSelector)
Lock an object. |
void |
logRedundantCleartoolError(java.lang.String[] cmd,
java.lang.Exception ex)
|
java.io.Reader |
lsactivity(java.lang.String activity,
java.lang.String commandFormat,
java.lang.String viewPath)
Call lsactivity (see on Rational ClearCase Commands Reference for details) |
java.lang.String |
lsbl(java.lang.String baselineName,
java.lang.String format)
List attributes of a baseline |
java.lang.String |
lscurrentview(java.lang.String viewPath)
Given a relative path, return the associated view tag if it exists. |
java.io.Reader |
lshistory(java.lang.String format,
java.util.Date lastBuildDate,
java.lang.String viewPath,
java.lang.String branch,
java.lang.String[] pathsInView)
Returns Reader containing output from lshistory. |
java.lang.String |
lsproject(java.lang.String viewTag,
java.lang.String format)
List attributes of a project |
java.lang.String |
lsstream(java.lang.String stream,
java.lang.String viewTag,
java.lang.String format)
List attributes of a stream |
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 |
java.util.List<Baseline> |
mkbl(java.lang.String name,
java.lang.String viewTag,
java.lang.String comment,
boolean fullBaseline,
boolean identical,
java.util.List<java.lang.String> components,
java.lang.String dDependsOn,
java.lang.String aDependsOn)
Creates a new baseline |
void |
mklabel(java.lang.String viewName,
java.lang.String label)
Attaches version labels to versions of elements |
void |
mkstream(java.lang.String parentStream,
java.lang.String stream)
Make a new stream |
void |
mkview(java.lang.String viewPath,
java.lang.String viewTag,
java.lang.String streamSelector)
Creates and registers a view |
void |
mkview(java.lang.String viewPath,
java.lang.String viewTag,
java.lang.String streamSelector,
java.lang.String defaultStorageDir)
for dynamic views : viewPath == viewTag |
void |
mountVobs()
Mounts all VOBs. |
java.lang.String |
pwv(java.lang.String viewPath)
Retrieves the canonical working directory for a given view. |
void |
rebaseDynamic(java.lang.String viewTag,
java.lang.String baseline)
Rebase a dynamic view |
void |
recommendBaseline(java.lang.String streamSelector)
Recommend the latest baselines on the stream that matches the minimum promotion level of the stream |
void |
rmtag(java.lang.String viewTag)
Removes a view tag or a VOB tag from the networkwide storage registry |
void |
rmview(java.lang.String viewPath)
Removes the view from a VOB |
void |
rmviewtag(java.lang.String viewTag)
Removes the view tag from the ClearCase registry - used when the view storage in the workspace has already been deleted. |
void |
rmviewUuid(java.lang.String viewUuid)
Removes the view (as identified by UUID) from all VOBs |
protected java.lang.String |
runAndProcessOutput(hudson.util.ArgumentListBuilder cmd,
java.io.InputStream in,
hudson.FilePath workFolder,
boolean catchExceptions,
java.util.List<java.io.IOException> exceptions)
|
void |
setBaselinePromotionLevel(java.lang.String baselineName,
ClearTool.DefaultPromotionLevel promotionLevel)
|
void |
setBaselinePromotionLevel(java.lang.String baselineName,
java.lang.String promotionLevel)
Set the baseline promotion level to the given level. |
void |
setcs(java.lang.String viewPath,
ClearTool.SetcsOption option,
java.lang.String configSpec)
To set the config spec of a snapshot view, you must be in or under the snapshot view root directory. |
void |
setcsCurrent(java.lang.String viewPath)
To set the config spec of a snapshot view, you must be in or under the snapshot view root directory. |
void |
setcsTag(java.lang.String viewTag,
ClearTool.SetcsOption option,
java.lang.String configSpec)
Synchronize the dynamic view with the latest recommended baseline for the stream. 1. |
void |
startView(java.lang.String viewTags)
Starts or connects to a dynamic view's view_server process |
void |
unlock(java.lang.String comment,
java.lang.String objectSelector)
Unlock an object |
void |
unregisterView(java.lang.String uuid)
Unregisters the view tag for a given UUID. |
void |
update(java.lang.String viewPath,
java.lang.String[] loadRules)
Updates the elements in the view |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ClearToolLauncher launcher
protected hudson.util.VariableResolver<java.lang.String> variableResolver
protected java.lang.String optionalMkviewParameters
| Constructor Detail |
|---|
public ClearToolExec(hudson.util.VariableResolver<java.lang.String> variableResolver,
ClearToolLauncher launcher,
java.lang.String optionalMkviewParameters)
| Method Detail |
|---|
public java.lang.String catcs(java.lang.String viewTag)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
catcs in interface ClearToolviewTag - The view tag the client want the config spec for.
java.io.IOException
java.lang.InterruptedException
public java.io.Reader describe(java.lang.String format,
java.lang.String objectSelector)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
describe in interface ClearTooljava.io.IOException - If cleartool throws an error code
java.lang.InterruptedException - If the process is interrupted
public java.io.Reader diffbl(java.util.EnumSet<ClearTool.DiffBlOptions> type,
java.lang.String baseline1,
java.lang.String baseline2,
java.lang.String viewPath)
ClearTool
diffbl in interface ClearTooltype - see http://www.ipnom.com/ClearCase-Commands/diffbl.htmlviewPath - A view path name needed to retrieve versions from
public boolean doesStreamExist(java.lang.String streamSelector)
throws java.io.IOException,
java.lang.InterruptedException
doesStreamExist in interface ClearTooljava.io.IOException
java.lang.InterruptedException
public boolean doesViewExist(java.lang.String viewTag)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
doesViewExist in interface ClearToolviewTag - the view tag to check
java.io.IOException
java.lang.InterruptedException
public void endView(java.lang.String viewTag)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
endView in interface ClearToolviewTag - the view tag
java.io.IOException
java.lang.InterruptedExceptionpublic ClearToolLauncher getLauncher()
ClearTool
getLauncher in interface ClearToolprotected abstract hudson.FilePath getRootViewPath(ClearToolLauncher launcher)
launcher -
public java.util.Properties getViewData(java.lang.String viewTag)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
getViewData in interface ClearTooljava.io.IOException
java.lang.InterruptedException
public boolean lock(java.lang.String comment,
java.lang.String objectSelector)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
lock in interface ClearToolcomment - Can be nullobjectSelector - Object select. Cannot be null
java.io.IOException
java.lang.InterruptedException
public void logRedundantCleartoolError(java.lang.String[] cmd,
java.lang.Exception ex)
logRedundantCleartoolError in interface ClearTool
public java.io.Reader lsactivity(java.lang.String activity,
java.lang.String commandFormat,
java.lang.String viewPath)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
lsactivity in interface ClearToolactivity - Specifies one or more activities to list.commandFormat - The output format to be used (-fmt <commandFormat>)viewPath - view path name to use in order to list activity
java.io.IOException
java.lang.InterruptedException
public java.lang.String lsbl(java.lang.String baselineName,
java.lang.String format)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
lsbl in interface ClearTooljava.io.IOException
java.lang.InterruptedException
public java.lang.String lscurrentview(java.lang.String viewPath)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
lscurrentview in interface ClearTooljava.io.IOException
java.lang.InterruptedException
public java.io.Reader lshistory(java.lang.String format,
java.util.Date lastBuildDate,
java.lang.String viewPath,
java.lang.String branch,
java.lang.String[] pathsInView)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
lshistory in interface ClearToolformat - format that should be used by the lshistory commandlastBuildDate - lists events recorded since (that is, at or after) the specified date-timeviewPath - the name of the viewbranch - the name of the branch to get history events for; if null then history events for all branches are
listedpathsInView - view paths that should be added to the lshistory command. The view paths must be relative.
java.io.IOException
java.lang.InterruptedException
public java.lang.String lsproject(java.lang.String viewTag,
java.lang.String format)
throws java.lang.InterruptedException,
java.io.IOException
ClearTool
lsproject in interface ClearToolviewTag - View tag of a view attached to a stream of the project
java.lang.InterruptedException
java.io.IOException
public java.lang.String lsstream(java.lang.String stream,
java.lang.String viewTag,
java.lang.String format)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
lsstream in interface ClearToolstream - TODOviewTag - The view tag of a view on the wanted stream
java.io.IOException
java.lang.InterruptedException
public java.util.List<java.lang.String> lsview(boolean onlyActiveDynamicViews)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
lsview in interface ClearToolonlyActiveDynamicViews - true for only return active dynamic views; false all views are returned
java.io.IOException
java.lang.InterruptedException
public java.util.List<java.lang.String> lsvob(boolean onlyMounted)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
lsvob in interface ClearToolonlyMounted - true for only return mounted vobs; false all vobs are returned
java.io.IOException
java.lang.InterruptedException
public java.util.List<Baseline> mkbl(java.lang.String name,
java.lang.String viewTag,
java.lang.String comment,
boolean fullBaseline,
boolean identical,
java.util.List<java.lang.String> components,
java.lang.String dDependsOn,
java.lang.String aDependsOn)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
mkbl in interface ClearToolname - The base name for the baselineviewTag - The view from which to create baseline. Baselines are created in the stream linked to this viewdDependsOn - TODOaDependsOn - TODO
java.io.IOException
java.lang.InterruptedException
public void mklabel(java.lang.String viewName,
java.lang.String label)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
mklabel in interface ClearToolviewName - The view path name (relative to the workspace)label - the label name
java.io.IOException
java.lang.InterruptedException
public void mkstream(java.lang.String parentStream,
java.lang.String stream)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
mkstream in interface ClearToolparentStream - The parent stream namestream - The new stream name
java.io.IOException
java.lang.InterruptedException
public void mkview(java.lang.String viewPath,
java.lang.String viewTag,
java.lang.String streamSelector)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
mkview in interface ClearToolviewPath - The view path name (relative to the workspace)viewTag - the name of the viewstreamSelector - optional stream selector, null if not used.
java.io.IOException
java.lang.InterruptedException
public void mkview(java.lang.String viewPath,
java.lang.String viewTag,
java.lang.String streamSelector,
java.lang.String defaultStorageDir)
throws java.io.IOException,
java.lang.InterruptedException
mkview in interface ClearToolviewPath - The view path name (relative to the workspace)viewTag - The view tag (unique server identifier for the view)streamSelector - optional stream selector, null if not used.
java.io.IOException
java.lang.InterruptedException
public void mountVobs()
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
mountVobs in interface ClearTooljava.io.IOException
java.lang.InterruptedException
public void setBaselinePromotionLevel(java.lang.String baselineName,
ClearTool.DefaultPromotionLevel promotionLevel)
throws java.io.IOException,
java.lang.InterruptedException
setBaselinePromotionLevel in interface ClearTooljava.io.IOException
java.lang.InterruptedException
public void setBaselinePromotionLevel(java.lang.String baselineName,
java.lang.String promotionLevel)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
setBaselinePromotionLevel in interface ClearTooljava.io.IOException
java.lang.InterruptedException
public java.lang.String pwv(java.lang.String viewPath)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
pwv in interface ClearToolviewPath - The view path to use to execute pwv
java.io.IOException
java.lang.InterruptedException
public void rebaseDynamic(java.lang.String viewTag,
java.lang.String baseline)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
rebaseDynamic in interface ClearToolviewTag - the view to rebase. It must be a dynamic viewbaseline - The new foundation baseline to use
java.io.IOException
java.lang.InterruptedException
public void recommendBaseline(java.lang.String streamSelector)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
recommendBaseline in interface ClearTooljava.io.IOException
java.lang.InterruptedException
public void rmview(java.lang.String viewPath)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
rmview in interface ClearToolviewPath - The path used for the view
java.io.IOException
java.lang.InterruptedException
public void rmviewtag(java.lang.String viewTag)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
rmviewtag in interface ClearToolviewTag - The view tag (server identifier of the view)
java.io.IOException
java.lang.InterruptedException
public void rmtag(java.lang.String viewTag)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
rmtag in interface ClearTooljava.io.IOException
java.lang.InterruptedException
public void rmviewUuid(java.lang.String viewUuid)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
rmviewUuid in interface ClearToolviewUuid - the unique identifier for the view
java.io.IOException
java.lang.InterruptedException
protected java.lang.String runAndProcessOutput(hudson.util.ArgumentListBuilder cmd,
java.io.InputStream in,
hudson.FilePath workFolder,
boolean catchExceptions,
java.util.List<java.io.IOException> exceptions)
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public void setcs(java.lang.String viewPath,
ClearTool.SetcsOption option,
java.lang.String configSpec)
throws java.io.IOException,
java.lang.InterruptedException
setcs in interface ClearToolviewPath - The view path name (relative to the workspace)option - The type of setcs that needs to be performedconfigSpec - the name of the file containing a config spec
java.io.IOException
java.lang.InterruptedExceptionhttp://www.ipnom.com/ClearCase-Commands/setcs.html
public void setcsCurrent(java.lang.String viewPath)
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedExceptionhttp://www.ipnom.com/ClearCase-Commands/setcs.html
public void setcsTag(java.lang.String viewTag,
ClearTool.SetcsOption option,
java.lang.String configSpec)
throws java.io.IOException,
java.lang.InterruptedException
setcsTag in interface ClearTooloption - The option to useconfigSpec - The config spec to apply. If omitted, the view tag
java.io.IOException
java.lang.InterruptedException
public void startView(java.lang.String viewTags)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
startView in interface ClearToolviewTags - One or more currently registered view tags (that is, view tags visible to lsview).
java.io.IOException
java.lang.InterruptedException
public void unlock(java.lang.String comment,
java.lang.String objectSelector)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
unlock in interface ClearTooljava.io.IOException
java.lang.InterruptedException
public void unregisterView(java.lang.String uuid)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
unregisterView in interface ClearTooluuid - the unique identifier for the view.
java.io.IOException
java.lang.InterruptedException
public void update(java.lang.String viewPath,
java.lang.String[] loadRules)
throws java.io.IOException,
java.lang.InterruptedException
ClearTool
update in interface ClearToolviewPath - the name of the viewloadRules - optional load rules, null if not used.
java.io.IOException
java.lang.InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||