Class SvnWorkingCopyManager
- java.lang.Object
-
- com.atlassian.bamboo.repository.svn.v2.AbstractSvnExecutor
-
- com.atlassian.bamboo.repository.svn.v2.SvnWorkingCopyManager
-
- All Implemented Interfaces:
NoContextVcsWorkingCopyManager
,StatusProvidingVcsWorkingCopyManager
,VcsWorkingCopyManager
public class SvnWorkingCopyManager extends AbstractSvnExecutor implements NoContextVcsWorkingCopyManager, StatusProvidingVcsWorkingCopyManager
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.repository.svn.v2.AbstractSvnExecutor
customVariableContext, svnClientManagerFactory
-
-
Constructor Summary
Constructors Constructor Description SvnWorkingCopyManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull VcsWorkingCopy
getWorkingCopyInfo(@NotNull VcsRepositoryData repositoryData, @NotNull File checkoutPath)
Provide repository working copy information for the given checkout path.@NotNull VcsWorkingCopy
retrieveSourceCode(@NotNull CommonContext commonContext, @NotNull VcsRepositoryData repositoryData, @NotNull PlanVcsRevisionData targetRevision, @NotNull File targetPath)
Checkout or update a working copy to a revision.@NotNull VcsWorkingCopy
updateToLatestRevision(@NotNull CommonContext commonContext, @NotNull VcsRepositoryData repositoryData, @NotNull File targetPath)
Checkout or update a working copy to the latest revision.@NotNull VcsWorkingCopy
updateToLatestRevision(@NotNull VcsRepositoryData repositoryData, @NotNull File targetPath)
Checkout or update a working copy to the latest revision.@NotNull VcsWorkingCopy
updateToLatestRevisionForSpecs(@NotNull VcsRepositoryData repositoryData, @NotNull File targetPath)
Checkout or update a working copy to the latest revision.-
Methods inherited from class com.atlassian.bamboo.repository.svn.v2.AbstractSvnExecutor
checkPathExists, copyRepository, doInfo, extractTrustedKey, getBranchDetectionRootUrl, getBranchRootUrl, getCommits, getSubstitutedAccessData, getSubstitutedAccessDataBuilder, getSvnClientManager, getTagRootUrl, getWorkingCopyFormatFromConfiguration, substituteString, svnUrltoVcsBranch
-
-
-
-
Method Detail
-
getWorkingCopyInfo
@NotNull public @NotNull VcsWorkingCopy getWorkingCopyInfo(@NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull File checkoutPath) throws RepositoryException
Description copied from interface:StatusProvidingVcsWorkingCopyManager
Provide repository working copy information for the given checkout path.- Specified by:
getWorkingCopyInfo
in interfaceStatusProvidingVcsWorkingCopyManager
- Parameters:
repositoryData
- configuration of the repositorycheckoutPath
- path, where repository was checked out- Returns:
- working copy information
- Throws:
RepositoryException
- if any error occurs, or e.g. the path is not a valid checkout path for the repository
-
updateToLatestRevision
@NotNull public @NotNull VcsWorkingCopy updateToLatestRevision(@NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull File targetPath) throws RepositoryException
Description copied from interface:NoContextVcsWorkingCopyManager
Checkout or update a working copy to the latest revision.- Specified by:
updateToLatestRevision
in interfaceNoContextVcsWorkingCopyManager
- Parameters:
repositoryData
- - configuration of a repository to checkout/updatetargetPath
- - workings copy's path. Note that some legacy implementation may ignore this parameter. (seeFixedDirectoryWorkingCopyManager
)- Returns:
- object representing created/updated working copy
- Throws:
RepositoryException
-
updateToLatestRevisionForSpecs
@NotNull public @NotNull VcsWorkingCopy updateToLatestRevisionForSpecs(@NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull File targetPath) throws RepositoryException
Description copied from interface:NoContextVcsWorkingCopyManager
Checkout or update a working copy to the latest revision. The method is desired to work with Specs.- Specified by:
updateToLatestRevisionForSpecs
in interfaceNoContextVcsWorkingCopyManager
- Parameters:
repositoryData
- - configuration of a repository to checkout/updatetargetPath
- - workings copy's path. Note that some legacy implementation may ignore this parameter. (seeFixedDirectoryWorkingCopyManager
)- Returns:
- object representing created/updated working copy
- Throws:
RepositoryException
-
retrieveSourceCode
@NotNull public @NotNull VcsWorkingCopy retrieveSourceCode(@NotNull @NotNull CommonContext commonContext, @NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull PlanVcsRevisionData targetRevision, @NotNull @NotNull File targetPath) throws RepositoryException
Description copied from interface:VcsWorkingCopyManager
Checkout or update a working copy to a revision.- Specified by:
retrieveSourceCode
in interfaceVcsWorkingCopyManager
- Parameters:
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. (seeFixedDirectoryWorkingCopyManager
)- Returns:
- object representing created/updated working copy
- Throws:
RepositoryException
-
updateToLatestRevision
@NotNull public @NotNull VcsWorkingCopy updateToLatestRevision(@NotNull @NotNull CommonContext commonContext, @NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull File targetPath) throws RepositoryException
Description copied from interface:VcsWorkingCopyManager
Checkout or update a working copy to the latest revision.- Specified by:
updateToLatestRevision
in interfaceVcsWorkingCopyManager
- Parameters:
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. (seeFixedDirectoryWorkingCopyManager
)- Returns:
- object representing created/updated working copy
- Throws:
RepositoryException
-
-