public interface ClearTool
Modifier and Type | Interface and Description |
---|---|
static class |
ClearTool.DefaultPromotionLevel |
static class |
ClearTool.DiffBlOptions |
static class |
ClearTool.SetcsOption |
Modifier and Type | Method and Description |
---|---|
String |
catcs(String viewTag)
Retrieves the config spec for the specified view name
|
Reader |
describe(String format,
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
|
Reader |
describe(String format,
String[] objectSelectors)
Call the cleartool describe with the provided format on the specified object selectors See http://www.ipnom.com/ClearCase-Commands/describe.html for
valid options
|
Reader |
describe(String format,
String viewPath,
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
|
Reader |
diffbl(EnumSet<ClearTool.DiffBlOptions> options,
String baseline1,
String baseline2,
String viewPath)
Call diffbl using the two provided baselines (can be stream or baseline)
|
boolean |
doesSetcsSupportOverride() |
boolean |
doesStreamExist(String streamSelector) |
boolean |
doesViewExist(String viewTag)
Checks whether the given view tag already exists in the ClearCase region.
|
void |
endView(String viewTag)
Ends the view
|
void |
endViewServer(String viewTag)
Ends the view, with -server option
|
ClearToolLauncher |
getLauncher()
Get the inner CLearToolLauncher.
|
Properties |
getViewData(String viewTag)
Gets the view UUID, for thorough view deletion.
|
boolean |
lock(String comment,
String objectSelector)
Lock an object.
|
void |
logRedundantCleartoolError(String[] cmd,
Exception ex) |
Reader |
lsactivity(String activity,
String commandFormat,
String viewPath)
Call lsactivity (see on Rational ClearCase Commands Reference for details)
|
Reader |
lsactivityIn(String streamSelector,
String commandFormat,
String viewPath) |
String |
lsbl(String baselineName,
String format)
List attributes of a baseline
|
String |
lscurrentview(String viewPath)
Given a relative path, return the associated view tag if it exists.
|
LsHistoryCommand |
lshistory()
Returns a lsHistoryCommand to prepare execution of a cleartool lshistory
|
Reader |
lshistory(String format,
Date lastBuildDate,
String viewPath,
String branch,
String[] pathsInView,
boolean getMinor)
Deprecated.
use
ClearTool#lshistory(LsHistoryParameters) instead. |
Reader |
lshistory(String format,
Date lastBuildDate,
String viewPath,
String branch,
String[] pathsInView,
boolean getMinor,
boolean useRecurse)
Deprecated.
use
ClearTool#lshistory(LsHistoryParameters) instead. |
String |
lsproject(String viewTag,
String format)
List attributes of a project
|
String |
lsstream(String stream,
String viewTag,
String format)
List attributes of a stream
|
List<String> |
lsview(boolean onlyActiveDynamicViews)
Lists view registry entries.
|
List<String> |
lsvob(boolean onlyMounted)
Lists VOB registry entries
|
List<Baseline> |
mkbl(String name,
String viewTag,
String comment,
boolean fullBaseline,
boolean identical,
List<String> components,
String dDependOn,
String aDependOn)
Creates a new baseline
|
void |
mklabel(String viewPath,
String label)
Attaches version labels to versions of elements
|
void |
mkstream(String parentStream,
String stream)
Make a new stream
|
void |
mkview(MkViewParameters params) |
void |
mkview(String viewPath,
String viewTag,
String streamSelector)
Creates and registers a view
|
void |
mkview(String viewPath,
String viewTag,
String streamSelector,
String defaultStorageDir)
Creates and registers a view
|
void |
mountVobs()
Mounts all VOBs.
|
String |
pwv(String viewPath)
Retrieves the canonical working directory for a given view.
|
void |
rebaseDynamic(String viewTag,
String baseline)
Rebase a dynamic view
|
void |
recommendBaseline(String streamSelector)
Recommend the latest baselines on the stream that matches the minimum promotion level of the stream
|
void |
rmtag(String tag)
Removes a view tag or a VOB tag from the networkwide storage registry
|
void |
rmview(String viewPath)
Removes the view from a VOB
|
void |
rmviewtag(String viewTag)
Removes the view tag from the ClearCase registry - used when the view storage in the workspace has already been deleted.
|
void |
rmviewUuid(String viewUuid)
Removes the view (as identified by UUID) from all VOBs
|
void |
setBaselinePromotionLevel(String baselineName,
ClearTool.DefaultPromotionLevel promotionLevel) |
void |
setBaselinePromotionLevel(String baselineName,
String promotionLevel)
Set the baseline promotion level to the given level.
|
void |
setcs(String viewPath,
ClearTool.SetcsOption option,
String configSpec)
Deprecated.
use setcs2 instead.
|
CleartoolUpdateResult |
setcs2(String viewPath,
ClearTool.SetcsOption current,
String configSpec)
Sets the config spec of the view
|
void |
setcsTag(String viewTag,
ClearTool.SetcsOption option,
String configSpec)
Synchronizes the Dynamic UCM view with the streams recommended baseline
|
void |
startView(String viewTags)
Starts or connects to a dynamic view's view_server process
|
void |
unlock(String comment,
String objectSelector)
Unlock an object
|
void |
unregisterView(String viewUuid)
Unregisters the view tag for a given UUID.
|
void |
update(String viewPath,
String[] loadRules)
Deprecated.
use update2 instead
|
CleartoolUpdateResult |
update2(String viewPath,
String[] loadRules)
Updates the elements in the view
|
CleartoolVersion |
version() |
ClearToolLauncher getLauncher()
String lsbl(String baselineName, String format) throws IOException, InterruptedException
baselineName
- format
- IOException
InterruptedException
String catcs(String viewTag) throws IOException, InterruptedException
viewTag
- The view tag the client want the config spec for.IOException
InterruptedException
Reader describe(String format, String objectSelector) throws IOException, InterruptedException
format
- objectSelector
- IOException
- If cleartool throws an error codeInterruptedException
- If the process is interruptedReader describe(String format, String viewPath, String objectSelector) throws IOException, InterruptedException
format
- viewPath
- objectSelector
- IOException
- If cleartool throws an error codeInterruptedException
- If the process is interruptedReader describe(String format, String[] objectSelectors) throws IOException, InterruptedException
format
- viewPath
- objectSelectors
- IOException
- If cleartool throws an error codeInterruptedException
- If the process is interruptedReader diffbl(EnumSet<ClearTool.DiffBlOptions> options, String baseline1, String baseline2, String viewPath) throws IOException
options
- see http://www.ipnom.com/ClearCase-Commands/diffbl.htmlbaseline1
- baseline2
- viewPath
- A view path name needed to retrieve versions fromIOException
- if unable to do I/O operationsboolean doesSetcsSupportOverride() throws IOException, InterruptedException
IOException
InterruptedException
boolean doesStreamExist(String streamSelector) throws IOException, InterruptedException
streamSelector
- IOException
InterruptedException
boolean doesViewExist(String viewTag) throws IOException, InterruptedException
viewTag
- the view tag to checkIOException
InterruptedException
void endView(String viewTag) throws IOException, InterruptedException
viewTag
- the view tagIOException
InterruptedException
void endViewServer(String viewTag) throws IOException, InterruptedException
viewTag
- the view tagIOException
InterruptedException
Properties getViewData(String viewTag) throws IOException, InterruptedException
viewTag
- IOException
InterruptedException
boolean lock(String comment, String objectSelector) throws IOException, InterruptedException
comment
- Can be nullobjectSelector
- Object select. Cannot be nullIOException
InterruptedException
Reader lsactivity(String activity, String commandFormat, String viewPath) throws IOException, 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 activityIOException
InterruptedException
Reader lsactivityIn(String streamSelector, String commandFormat, String viewPath) throws IOException, InterruptedException
IOException
InterruptedException
String lscurrentview(String viewPath) throws IOException, InterruptedException
IOException
InterruptedException
LsHistoryCommand lshistory() throws IOException, InterruptedException
IOException
InterruptedException
@Deprecated Reader lshistory(String format, Date lastBuildDate, String viewPath, String branch, String[] pathsInView, boolean getMinor) throws IOException, InterruptedException
ClearTool#lshistory(LsHistoryParameters)
instead.IOException
InterruptedException
@Deprecated Reader lshistory(String format, Date lastBuildDate, String viewPath, String branch, String[] pathsInView, boolean getMinor, boolean useRecurse) throws IOException, InterruptedException
ClearTool#lshistory(LsHistoryParameters)
instead.IOException
InterruptedException
String lsproject(String viewTag, String format) throws InterruptedException, IOException
viewTag
- View tag of a view attached to a stream of the projectformat
- InterruptedException
IOException
String lsstream(String stream, String viewTag, String format) throws IOException, InterruptedException
stream
- TODOviewTag
- The view tag of a view on the wanted streamformat
- IOException
InterruptedException
List<String> lsview(boolean onlyActiveDynamicViews) throws IOException, InterruptedException
onlyActiveDynamicViews
- true for only return active dynamic views; false all views are returnedIOException
InterruptedException
List<String> lsvob(boolean onlyMounted) throws IOException, InterruptedException
onlyMounted
- true for only return mounted vobs; false all vobs are returnedIOException
InterruptedException
List<Baseline> mkbl(String name, String viewTag, String comment, boolean fullBaseline, boolean identical, List<String> components, String dDependOn, String aDependOn) throws IOException, 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
- TODOIOException
InterruptedException
void mklabel(String viewPath, String label) throws IOException, InterruptedException
viewPath
- The view path name (relative to the workspace)label
- the label nameIOException
InterruptedException
void mkstream(String parentStream, String stream) throws IOException, InterruptedException
parentStream
- The parent stream namestream
- The new stream nameIOException
InterruptedException
void mkview(MkViewParameters params) throws IOException, InterruptedException
IOException
InterruptedException
void mkview(String viewPath, String viewTag, String streamSelector) throws IOException, 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 commandIOException
InterruptedException
void mkview(String viewPath, String viewTag, String streamSelector, String defaultStorageDir) throws IOException, 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 commandIOException
InterruptedException
void mountVobs() throws IOException, InterruptedException
IOException
InterruptedException
String pwv(String viewPath) throws IOException, InterruptedException
viewPath
- The view path to use to execute pwvIOException
InterruptedException
void rebaseDynamic(String viewTag, String baseline) throws IOException, InterruptedException
viewTag
- the view to rebase. It must be a dynamic viewbaseline
- The new foundation baseline to useIOException
InterruptedException
void recommendBaseline(String streamSelector) throws IOException, InterruptedException
streamSelector
- IOException
InterruptedException
void rmtag(String tag) throws IOException, InterruptedException
tag
- IOException
InterruptedException
void rmview(String viewPath) throws IOException, InterruptedException
viewPath
- The path used for the viewIOException
InterruptedException
void rmviewtag(String viewTag) throws IOException, InterruptedException
viewTag
- The view tag (server identifier of the view)IOException
InterruptedException
void rmviewUuid(String viewUuid) throws IOException, InterruptedException
viewUuid
- the unique identifier for the viewIOException
InterruptedException
void setBaselinePromotionLevel(String baselineName, ClearTool.DefaultPromotionLevel promotionLevel) throws IOException, InterruptedException
IOException
InterruptedException
void setBaselinePromotionLevel(String baselineName, String promotionLevel) throws IOException, InterruptedException
baselineName
- promotionLevel
- IOException
InterruptedException
@Deprecated void setcs(String viewPath, ClearTool.SetcsOption option, String configSpec) throws IOException, 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 specIOException
InterruptedException
CleartoolUpdateResult setcs2(String viewPath, ClearTool.SetcsOption current, String configSpec) throws IOException, 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 specIOException
InterruptedException
void setcsTag(String viewTag, ClearTool.SetcsOption option, String configSpec) throws IOException, InterruptedException
viewTag
- option
- The option to useconfigSpec
- The config spec to apply. If omitted, the view tagIOException
InterruptedException
void startView(String viewTags) throws IOException, InterruptedException
viewTags
- One or more currently registered view tags (that is, view tags visible to lsview).IOException
InterruptedException
void unlock(String comment, String objectSelector) throws IOException, InterruptedException
comment
- objectSelector
- IOException
InterruptedException
void unregisterView(String viewUuid) throws IOException, InterruptedException
viewUuid
- the unique identifier for the view.IOException
InterruptedException
@Deprecated void update(String viewPath, String[] loadRules) throws IOException, InterruptedException
viewPath
- the name of the viewloadRules
- optional load rules, null if not used.IOException
InterruptedException
CleartoolUpdateResult update2(String viewPath, String[] loadRules) throws IOException, InterruptedException
viewPath
- the name of the viewloadRules
- optional load rules, null if not used.IOException
InterruptedException
CleartoolVersion version() throws IOException, InterruptedException, CleartoolVersionParsingException
Copyright © 2004-2021. All Rights Reserved.