Class LegacyFixedDirectoryWorkingCopyManager
- java.lang.Object
-
- com.atlassian.bamboo.vcs.configuration.legacy.LegacyExecutorBase
-
- com.atlassian.bamboo.vcs.configuration.legacy.LegacyWorkingCopyManager
-
- com.atlassian.bamboo.vcs.configuration.legacy.LegacyFixedDirectoryWorkingCopyManager
-
- All Implemented Interfaces:
FixedDirectoryWorkingCopyManager
,MergingVcsWorkingCopyManager
,UpdatingVcsWorkingCopyManager
,VcsWorkingCopyManager
public class LegacyFixedDirectoryWorkingCopyManager extends LegacyWorkingCopyManager implements FixedDirectoryWorkingCopyManager
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.vcs.configuration.legacy.LegacyExecutorBase
repositoryModuleDescriptor
-
-
Constructor Summary
Constructors Constructor Description LegacyFixedDirectoryWorkingCopyManager(RepositoryModuleDescriptor repositoryModuleDescriptor, BuildLoggerManager buildLoggerManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull File
getWorkingCopyPath(@NotNull CommonContext commonContext, @NotNull VcsRepositoryData repositoryData)
Based on configuration and current context produce absolute path to the working copy.@NotNull VcsWorkingCopy
retrieveSourceCode(@NotNull CommonContext commonContext, @NotNull VcsRepositoryData repositoryData, @NotNull PlanVcsRevisionData targetRevision)
Checkout or update a working copy to a revision.@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.-
Methods inherited from class com.atlassian.bamboo.vcs.configuration.legacy.LegacyWorkingCopyManager
checkoutAndMerge, commitLocal, updateRemote
-
Methods inherited from class com.atlassian.bamboo.vcs.configuration.legacy.LegacyExecutorBase
getNewRepositoryInstance, getNewRepositoryInstanceAs, getRepositoryInstance, getRepositoryInstanceAs, xmlToConfiguration
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.vcs.runtime.MergingVcsWorkingCopyManager
canDoMerge, getMergingRequirements
-
Methods inherited from interface com.atlassian.bamboo.vcs.runtime.UpdatingVcsWorkingCopyManager
stageChanges
-
-
-
-
Constructor Detail
-
LegacyFixedDirectoryWorkingCopyManager
public LegacyFixedDirectoryWorkingCopyManager(RepositoryModuleDescriptor repositoryModuleDescriptor, BuildLoggerManager buildLoggerManager)
-
-
Method Detail
-
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 interfaceFixedDirectoryWorkingCopyManager
- Specified by:
updateToLatestRevision
in interfaceVcsWorkingCopyManager
- Overrides:
updateToLatestRevision
in classLegacyWorkingCopyManager
- 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
-
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 interfaceFixedDirectoryWorkingCopyManager
- Specified by:
retrieveSourceCode
in interfaceVcsWorkingCopyManager
- Overrides:
retrieveSourceCode
in classLegacyWorkingCopyManager
- 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
-
retrieveSourceCode
@NotNull public @NotNull VcsWorkingCopy retrieveSourceCode(@NotNull @NotNull CommonContext commonContext, @NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull PlanVcsRevisionData targetRevision) throws RepositoryException
Description copied from interface:FixedDirectoryWorkingCopyManager
Checkout or update a working copy to a revision.- Specified by:
retrieveSourceCode
in interfaceFixedDirectoryWorkingCopyManager
- Parameters:
commonContext
- - a current build or deployment contextrepositoryData
- - configuration of a repository to checkout/updatetargetRevision
- - revision to check out or update to- Returns:
- object representing created/updated working copy
- Throws:
RepositoryException
-
getWorkingCopyPath
@NotNull public @NotNull File getWorkingCopyPath(@NotNull @NotNull CommonContext commonContext, @NotNull @NotNull VcsRepositoryData repositoryData) throws RepositoryException
Description copied from interface:FixedDirectoryWorkingCopyManager
Based on configuration and current context produce absolute path to the working copy.- Specified by:
getWorkingCopyPath
in interfaceFixedDirectoryWorkingCopyManager
- Returns:
- Throws:
RepositoryException
-
-