|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClearTool
Abstraction to cleartool commands
| Nested Class Summary | |
|---|---|
static class |
ClearTool.DefaultPromotionLevel
|
static class |
ClearTool.DiffBlOptions
|
static class |
ClearTool.SetcsOption
|
| 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> options,
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. |
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 dDependOn,
java.lang.String aDependOn)
Creates a new baseline |
void |
mklabel(java.lang.String viewPath,
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)
Creates and registers a view |
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 tag)
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 |
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)
Sets the config spec of the view |
void |
setcsTag(java.lang.String viewTag,
ClearTool.SetcsOption option,
java.lang.String configSpec)
Synchronizes the Dynamic UCM view with the streams recommended baseline |
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 viewUuid)
Unregisters the view tag for a given UUID. |
void |
update(java.lang.String viewPath,
java.lang.String[] loadRules)
Updates the elements in the view |
| Method Detail |
|---|
java.lang.String catcs(java.lang.String viewTag)
throws java.io.IOException,
java.lang.InterruptedException
viewTag - The view tag the client want the config spec for.
java.io.IOException
java.lang.InterruptedException
java.io.Reader describe(java.lang.String format,
java.lang.String objectSelector)
throws java.io.IOException,
java.lang.InterruptedException
format - objectSelector -
java.io.IOException - If cleartool throws an error code
java.lang.InterruptedException - If the process is interrupted
java.io.Reader diffbl(java.util.EnumSet<ClearTool.DiffBlOptions> options,
java.lang.String baseline1,
java.lang.String baseline2,
java.lang.String viewPath)
options - see http://www.ipnom.com/ClearCase-Commands/diffbl.htmlbaseline1 - baseline2 - viewPath - A view path name needed to retrieve versions from
boolean doesStreamExist(java.lang.String streamSelector)
throws java.io.IOException,
java.lang.InterruptedException
streamSelector -
java.io.IOException
java.lang.InterruptedException
boolean doesViewExist(java.lang.String viewTag)
throws java.io.IOException,
java.lang.InterruptedException
viewTag - the view tag to check
java.io.IOException
java.lang.InterruptedException
void endView(java.lang.String viewTag)
throws java.io.IOException,
java.lang.InterruptedException
viewTag - the view tag
java.io.IOException
java.lang.InterruptedExceptionClearToolLauncher getLauncher()
java.util.Properties getViewData(java.lang.String viewTag)
throws java.io.IOException,
java.lang.InterruptedException
viewTag -
java.io.IOException
java.lang.InterruptedException
void logRedundantCleartoolError(java.lang.String[] cmd,
java.lang.Exception ex)
boolean lock(java.lang.String comment,
java.lang.String objectSelector)
throws java.io.IOException,
java.lang.InterruptedException
comment - Can be nullobjectSelector - Object select. Cannot be null
java.io.IOException
java.lang.InterruptedException
java.io.Reader lsactivity(java.lang.String activity,
java.lang.String commandFormat,
java.lang.String viewPath)
throws java.io.IOException,
java.lang.InterruptedException
activity - 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
java.lang.String lsbl(java.lang.String baselineName,
java.lang.String format)
throws java.io.IOException,
java.lang.InterruptedException
baselineName - format -
java.io.IOException
java.lang.InterruptedException
java.lang.String lscurrentview(java.lang.String viewPath)
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
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
format - 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
java.lang.String lsproject(java.lang.String viewTag,
java.lang.String format)
throws java.lang.InterruptedException,
java.io.IOException
viewTag - View tag of a view attached to a stream of the projectformat -
java.lang.InterruptedException
java.io.IOException
java.lang.String lsstream(java.lang.String stream,
java.lang.String viewTag,
java.lang.String format)
throws java.io.IOException,
java.lang.InterruptedException
stream - TODOviewTag - The view tag of a view on the wanted streamformat -
java.io.IOException
java.lang.InterruptedException
java.util.List<java.lang.String> lsview(boolean onlyActiveDynamicViews)
throws java.io.IOException,
java.lang.InterruptedException
onlyActiveDynamicViews - true for only return active dynamic views; false all views are returned
java.io.IOException
java.lang.InterruptedException
java.util.List<java.lang.String> lsvob(boolean onlyMounted)
throws java.io.IOException,
java.lang.InterruptedException
onlyMounted - true for only return mounted vobs; false all vobs are returned
java.io.IOException
java.lang.InterruptedException
void mklabel(java.lang.String viewPath,
java.lang.String label)
throws java.io.IOException,
java.lang.InterruptedException
viewPath - The view path name (relative to the workspace)label - the label name
java.io.IOException
java.lang.InterruptedException
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 dDependOn,
java.lang.String aDependOn)
throws java.io.IOException,
java.lang.InterruptedException
name - The base name for the baselineviewTag - The view from which to create baseline. Baselines are created in the stream linked to this viewcomment - fullBaseline - identical - components - dDependOn - TODOaDependOn - TODO
java.io.IOException
java.lang.InterruptedException
void mkstream(java.lang.String parentStream,
java.lang.String stream)
throws java.io.IOException,
java.lang.InterruptedException
parentStream - The parent stream namestream - The new stream name
java.io.IOException
java.lang.InterruptedException
void mkview(java.lang.String viewPath,
java.lang.String viewTag,
java.lang.String streamSelector)
throws java.io.IOException,
java.lang.InterruptedException
viewPath - The view path name (relative to the workspace)viewTag - the name of the viewstreamSelector - optional stream selector, null if not used.launcher - launcher for launching the command
java.io.IOException
java.lang.InterruptedException
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
viewPath - 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.launcher - launcher for launching the command
java.io.IOException
java.lang.InterruptedException
void mountVobs()
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
java.lang.String pwv(java.lang.String viewPath)
throws java.io.IOException,
java.lang.InterruptedException
viewPath - The view path to use to execute pwv
java.io.IOException
java.lang.InterruptedException
void rebaseDynamic(java.lang.String viewTag,
java.lang.String baseline)
throws java.io.IOException,
java.lang.InterruptedException
viewTag - the view to rebase. It must be a dynamic viewbaseline - The new foundation baseline to use
java.io.IOException
java.lang.InterruptedException
void recommendBaseline(java.lang.String streamSelector)
throws java.io.IOException,
java.lang.InterruptedException
streamSelector -
java.io.IOException
java.lang.InterruptedException
void rmview(java.lang.String viewPath)
throws java.io.IOException,
java.lang.InterruptedException
viewPath - The path used for the view
java.io.IOException
java.lang.InterruptedException
void rmviewtag(java.lang.String viewTag)
throws java.io.IOException,
java.lang.InterruptedException
viewTag - The view tag (server identifier of the view)
java.io.IOException
java.lang.InterruptedException
void rmtag(java.lang.String tag)
throws java.io.IOException,
java.lang.InterruptedException
tag -
java.io.IOException
java.lang.InterruptedException
void rmviewUuid(java.lang.String viewUuid)
throws java.io.IOException,
java.lang.InterruptedException
viewUuid - the unique identifier for the view
java.io.IOException
java.lang.InterruptedException
void setBaselinePromotionLevel(java.lang.String baselineName,
java.lang.String promotionLevel)
throws java.io.IOException,
java.lang.InterruptedException
baselineName - promotionLevel -
java.io.IOException
java.lang.InterruptedException
void setBaselinePromotionLevel(java.lang.String baselineName,
ClearTool.DefaultPromotionLevel promotionLevel)
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
void setcs(java.lang.String viewPath,
ClearTool.SetcsOption option,
java.lang.String configSpec)
throws java.io.IOException,
java.lang.InterruptedException
viewPath - 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.InterruptedException
void setcsTag(java.lang.String viewTag,
ClearTool.SetcsOption option,
java.lang.String configSpec)
throws java.io.IOException,
java.lang.InterruptedException
viewTag - option - The option to useconfigSpec - The config spec to apply. If omitted, the view tag
java.io.IOException
java.lang.InterruptedException
void startView(java.lang.String viewTags)
throws java.io.IOException,
java.lang.InterruptedException
viewTags - One or more currently registered view tags (that is, view tags visible to lsview).
java.io.IOException
java.lang.InterruptedException
void unlock(java.lang.String comment,
java.lang.String objectSelector)
throws java.io.IOException,
java.lang.InterruptedException
comment - objectSelector -
java.io.IOException
java.lang.InterruptedException
void unregisterView(java.lang.String viewUuid)
throws java.io.IOException,
java.lang.InterruptedException
viewUuid - the unique identifier for the view.
java.io.IOException
java.lang.InterruptedException
void update(java.lang.String viewPath,
java.lang.String[] loadRules)
throws java.io.IOException,
java.lang.InterruptedException
viewPath - 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 | |||||||||