@Deprecated public interface FixedDirectoryWorkingCopyManager extends VcsWorkingCopyManager
VcsWorkingCopyManager
instead, as this variant severely limits implementation's usefulness.
For example, repository plugins implementing this interface cannot be used in deployment projects.
Use only if you must.Modifier and Type | Method and Description |
---|---|
File |
getWorkingCopyPath(CommonContext commonContext,
VcsRepositoryData repositoryData)
Deprecated.
Based on configuration and current context produce absolute path to the working copy.
|
VcsWorkingCopy |
retrieveSourceCode(CommonContext commonContext,
VcsRepositoryData repositoryData,
PlanVcsRevisionData targetRevision)
Deprecated.
Checkout or update a working copy to a revision.
|
default VcsWorkingCopy |
retrieveSourceCode(CommonContext commonContext,
VcsRepositoryData repositoryData,
PlanVcsRevisionData targetRevision,
File targetPath)
Deprecated.
If you can implement this correctly using targetPath,
then you should not be implementing this interface.
|
default VcsWorkingCopy |
updateToLatestRevision(CommonContext commonContext,
VcsRepositoryData repositoryData,
File targetPath)
Deprecated.
If you can implement this, then you should not be implementing this interface.
|
@NotNull default VcsWorkingCopy retrieveSourceCode(@NotNull CommonContext commonContext, @NotNull VcsRepositoryData repositoryData, @NotNull PlanVcsRevisionData targetRevision, @NotNull File targetPath) throws RepositoryException
retrieveSourceCode
in interface VcsWorkingCopyManager
commonContext
- - a current build or deployment contextrepositoryData
- - configuration of a repository to checkout/updatetargetRevision
- - revision to check out or update totargetPath
- - workings copy's path. Note that some legacy implementation may ignore this parameter. (see FixedDirectoryWorkingCopyManager
)RepositoryException
@NotNull default VcsWorkingCopy updateToLatestRevision(@NotNull CommonContext commonContext, @NotNull VcsRepositoryData repositoryData, @NotNull File targetPath) throws RepositoryException
updateToLatestRevision
in interface VcsWorkingCopyManager
commonContext
- - a current build or deployment contextrepositoryData
- - configuration of a repository to checkout/updatetargetPath
- - workings copy's path. Note that some legacy implementation may ignore this parameter. (see FixedDirectoryWorkingCopyManager
)UnsupportedOperationException
RepositoryException
@NotNull VcsWorkingCopy retrieveSourceCode(@NotNull CommonContext commonContext, @NotNull VcsRepositoryData repositoryData, @NotNull PlanVcsRevisionData targetRevision) throws RepositoryException
commonContext
- - a current build or deployment contextrepositoryData
- - configuration of a repository to checkout/updatetargetRevision
- - revision to check out or update toRepositoryException
@NotNull File getWorkingCopyPath(@NotNull CommonContext commonContext, @NotNull VcsRepositoryData repositoryData) throws RepositoryException
commonContext
- repositoryData
- RepositoryException
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.