Class AccuRevScmProviderRepository
java.lang.Object
org.apache.maven.scm.provider.ScmProviderRepository
org.apache.maven.scm.provider.ScmProviderRepositoryWithHost
org.apache.maven.scm.provider.accurev.AccuRevScmProviderRepository
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatTimeSpec
(Date when) getAccuRevVersion
(ScmVersion scmVersion) The relative path of the directory of the checked out project in comparison to the checkout directory, or an empty String in case the checkout directory equals the project directory.private long
getCurrentTransactionId
(String workSpaceName) getDepotTransaction
(String stream, String tranSpec) getDepotTransactionId
(String stream, String tranSpec) Relative project path for exportgetRevision
(String stream, long fromTranId) getRevision
(String streamName, String transaction) getRevision
(String streamName, Date date) getSnapshotName
(String tagName) getWorkSpaceRevision
(String workspace) boolean
isWorkSpaceRoot
(AccuRevInfo info) boolean
isWorkSpaceTop
(AccuRevInfo info) void
setAccuRev
(AccuRev accurev) void
setCheckoutRelativePath
(String checkoutRelativePath) void
void
setProjectPath
(String projectPath) void
setShouldUseExportForNonPersistentCheckout
(boolean shouldUseExportForNonPersistentCheckout) void
setStreamName
(String streamName) void
setTagFormat
(String tagFormat) boolean
When checkout is not expected to be refreshed or committed, should export be used instead? Perforce, Clearcase and AccuRev store their meta-data about file status within the server rather than files in the source tree.(package private) String
streamToTag
(String streamName) (package private) String
tagToStream
(String tagName) toString()
Methods inherited from class org.apache.maven.scm.provider.ScmProviderRepositoryWithHost
getHost, getPassphrase, getPort, getPrivateKey, setHost, setPassphrase, setPort, setPrivateKey
Methods inherited from class org.apache.maven.scm.provider.ScmProviderRepository
getParent, getPassword, getRelativePath, getUser, getWorkItem, isPersistCheckout, isPushChanges, setPassword, setPersistCheckout, setPushChanges, setUser, setWorkItem
-
Field Details
-
DEFAULT_TAG_FORMAT
- See Also:
-
accurev
-
streamName
-
projectPath
-
tagFormat
-
logger
-
checkoutRelativePath
-
shouldUseExportForNonPersistentCheckout
private boolean shouldUseExportForNonPersistentCheckout
-
-
Constructor Details
-
AccuRevScmProviderRepository
public AccuRevScmProviderRepository()
-
-
Method Details
-
getTagFormat
-
setTagFormat
-
getStreamName
-
setStreamName
-
getProjectPath
-
setProjectPath
-
getAccuRev
-
setAccuRev
-
isWorkSpaceRoot
- Parameters:
info
-- Returns:
- true if info indicates a root of the workspace.
-
isWorkSpaceTop
-
tagToStream
-
streamToTag
-
setLogger
-
getCheckoutRelativePath
The relative path of the directory of the checked out project in comparison to the checkout directory, or an empty String in case the checkout directory equals the project directory.With most SCMs, this is just an empty String, meaning that the checkout directory equals the project directory. But there are cases (e.g. ClearCase) where within the checkout directory, the directory structure of the SCM system is repeated. E.g. if you check out the project "my/project" to "/some/dir", the project sources are actually checked out to "some/dir/my/project". In this example, relativePathProjectDirectory would contain "my/project".
-
setCheckoutRelativePath
-
getExportRelativePath
Relative project path for export- Returns:
- default same as
getCheckoutRelativePath()
-
shouldUseExportForNonPersistentCheckout
public boolean shouldUseExportForNonPersistentCheckout()When checkout is not expected to be refreshed or committed, should export be used instead? Perforce, Clearcase and AccuRev store their meta-data about file status within the server rather than files in the source tree. This makes checkouts within checkouts (eg release:perform) difficult. Typically there is a way to do a lightweight export instead which can be implemented as the "export" command. This is a hint to downstream applications that "export" is available and should be used in preference to "checkout" in cases where "update" and "commit" are not intended to be used. (ie release:perform)- Returns:
- false by default
-
setShouldUseExportForNonPersistentCheckout
public void setShouldUseExportForNonPersistentCheckout(boolean shouldUseExportForNonPersistentCheckout) -
getDepotRelativeProjectPath
-
getAccuRevVersion
-
getSnapshotName
-
getRevision
-
getRevision
-
getRevision
-
getWorkSpaceRevision
- Throws:
AccuRevException
-
getDepotTransaction
- Throws:
AccuRevException
-
getDepotTransactionId
- Throws:
AccuRevException
-
getCurrentTransactionId
- Throws:
AccuRevException
-
toString
-
formatTimeSpec
-