Class AbstractSvnExecutor
- java.lang.Object
-
- com.atlassian.bamboo.repository.svn.v2.AbstractSvnExecutor
-
- Direct Known Subclasses:
SvnBambooSpecsHandler
,SvnBranchCreator
,SvnBranchDetector
,SvnChangeDetector
,SvnConfigConverter
,SvnConnectionTester
,SvnTagCreator
,SvnVariableGenerator
,SvnWorkingCopyManager
public abstract class AbstractSvnExecutor extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected CustomVariableContext
customVariableContext
protected SVNClientManagerFactory
svnClientManagerFactory
-
Constructor Summary
Constructors Constructor Description AbstractSvnExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkPathExists(org.tmatesoft.svn.core.wc.SVNClientManager clientManager, org.tmatesoft.svn.core.SVNURL url)
protected void
copyRepository(org.tmatesoft.svn.core.wc.SVNClientManager clientManager, @NotNull org.tmatesoft.svn.core.SVNURL fromUrl, @NotNull org.tmatesoft.svn.core.wc.SVNRevision revision, @NotNull org.tmatesoft.svn.core.SVNURL toUrl, @NotNull BuildLogger buildLogger)
Remote copy from fromURL in revision vcsRevisionKey to toURLprotected @NotNull org.tmatesoft.svn.core.wc.SVNInfo
doInfo(org.tmatesoft.svn.core.wc.SVNClientManager clientManager, org.tmatesoft.svn.core.SVNURL url, org.tmatesoft.svn.core.wc.SVNRevision revision, @NotNull SvnRepositoryAccessData accessData)
Runs 'svn info' operation on a given URL.protected @Nullable TrustedKey
extractTrustedKey(@NotNull org.tmatesoft.svn.core.SVNException e)
protected org.tmatesoft.svn.core.SVNURL
getBranchDetectionRootUrl(org.tmatesoft.svn.core.wc.SVNClientManager clientManager, SvnRepositoryAccessData accessData)
protected org.tmatesoft.svn.core.SVNURL
getBranchRootUrl(org.tmatesoft.svn.core.wc.SVNClientManager clientManager, SvnRepositoryAccessData accessData)
protected @NotNull CommitExtractor
getCommits(@NotNull org.tmatesoft.svn.core.wc.SVNClientManager clientManager, @NotNull org.tmatesoft.svn.core.SVNURL repositorySvnUrl, org.tmatesoft.svn.core.wc.SVNRevision startRevision, org.tmatesoft.svn.core.wc.SVNRevision endRevision, int maxCommitsToReturn)
protected SvnRepositoryAccessData
getSubstitutedAccessData(@NotNull VcsRepositoryData vcsRepositoryData)
protected SvnRepositoryAccessData.Builder
getSubstitutedAccessDataBuilder(@NotNull VcsRepositoryData vcsRepositoryData)
protected org.tmatesoft.svn.core.wc.SVNClientManager
getSvnClientManager(@NotNull SvnRepositoryAccessData substitutedAccessData)
SVNClientManager factory.protected org.tmatesoft.svn.core.SVNURL
getTagRootUrl(org.tmatesoft.svn.core.wc.SVNClientManager clientManager, SvnRepositoryAccessData accessData)
protected SvnWcFormat
getWorkingCopyFormatFromConfiguration()
protected String
substituteString(@Nullable String stringWithValuesToSubstitute)
protected @NotNull VcsBranch
svnUrltoVcsBranch(org.tmatesoft.svn.core.SVNURL svnurl, String repositoryUrl)
-
-
-
Field Detail
-
customVariableContext
@Inject protected CustomVariableContext customVariableContext
-
svnClientManagerFactory
@Inject protected SVNClientManagerFactory svnClientManagerFactory
-
-
Method Detail
-
getSubstitutedAccessDataBuilder
protected SvnRepositoryAccessData.Builder getSubstitutedAccessDataBuilder(@NotNull @NotNull VcsRepositoryData vcsRepositoryData)
-
getSubstitutedAccessData
protected SvnRepositoryAccessData getSubstitutedAccessData(@NotNull @NotNull VcsRepositoryData vcsRepositoryData)
-
substituteString
protected String substituteString(@Nullable @Nullable String stringWithValuesToSubstitute)
-
getSvnClientManager
protected org.tmatesoft.svn.core.wc.SVNClientManager getSvnClientManager(@NotNull @NotNull SvnRepositoryAccessData substitutedAccessData)
SVNClientManager factory.- Returns:
- SVNClientManager appropriate for authorization mode
-
doInfo
@NotNull protected @NotNull org.tmatesoft.svn.core.wc.SVNInfo doInfo(org.tmatesoft.svn.core.wc.SVNClientManager clientManager, org.tmatesoft.svn.core.SVNURL url, org.tmatesoft.svn.core.wc.SVNRevision revision, @NotNull @NotNull SvnRepositoryAccessData accessData) throws org.tmatesoft.svn.core.SVNException
Runs 'svn info' operation on a given URL.- Throws:
org.tmatesoft.svn.core.SVNException
-
getCommits
@NotNull protected @NotNull CommitExtractor getCommits(@NotNull @NotNull org.tmatesoft.svn.core.wc.SVNClientManager clientManager, @NotNull @NotNull org.tmatesoft.svn.core.SVNURL repositorySvnUrl, org.tmatesoft.svn.core.wc.SVNRevision startRevision, org.tmatesoft.svn.core.wc.SVNRevision endRevision, int maxCommitsToReturn) throws org.tmatesoft.svn.core.SVNException
- Throws:
org.tmatesoft.svn.core.SVNException
-
getWorkingCopyFormatFromConfiguration
protected SvnWcFormat getWorkingCopyFormatFromConfiguration()
-
extractTrustedKey
@Nullable protected @Nullable TrustedKey extractTrustedKey(@NotNull @NotNull org.tmatesoft.svn.core.SVNException e)
-
copyRepository
protected void copyRepository(org.tmatesoft.svn.core.wc.SVNClientManager clientManager, @NotNull @NotNull org.tmatesoft.svn.core.SVNURL fromUrl, @NotNull @NotNull org.tmatesoft.svn.core.wc.SVNRevision revision, @NotNull @NotNull org.tmatesoft.svn.core.SVNURL toUrl, @NotNull @NotNull BuildLogger buildLogger) throws org.tmatesoft.svn.core.SVNException
Remote copy from fromURL in revision vcsRevisionKey to toURL- Throws:
org.tmatesoft.svn.core.SVNException
-
checkPathExists
protected boolean checkPathExists(org.tmatesoft.svn.core.wc.SVNClientManager clientManager, org.tmatesoft.svn.core.SVNURL url)
-
getBranchDetectionRootUrl
protected org.tmatesoft.svn.core.SVNURL getBranchDetectionRootUrl(org.tmatesoft.svn.core.wc.SVNClientManager clientManager, SvnRepositoryAccessData accessData) throws org.tmatesoft.svn.core.SVNException
- Throws:
org.tmatesoft.svn.core.SVNException
-
getBranchRootUrl
protected org.tmatesoft.svn.core.SVNURL getBranchRootUrl(org.tmatesoft.svn.core.wc.SVNClientManager clientManager, SvnRepositoryAccessData accessData) throws org.tmatesoft.svn.core.SVNException
- Throws:
org.tmatesoft.svn.core.SVNException
-
getTagRootUrl
protected org.tmatesoft.svn.core.SVNURL getTagRootUrl(org.tmatesoft.svn.core.wc.SVNClientManager clientManager, SvnRepositoryAccessData accessData) throws org.tmatesoft.svn.core.SVNException
- Throws:
org.tmatesoft.svn.core.SVNException
-
-