Package jetbrains.buildServer.vcs
Interface VcsContentManager
-
- All Known Subinterfaces:
VcsContentManagerEx
,VcsManager
,VcsManagerEx
- All Known Implementing Classes:
SecuredVcsManager
,VcsContentManagerImpl
,VcsManagerImpl
public interface VcsContentManager
- Since:
- 8.1
- Author:
- Eugene Petrenko (eugene.petrenko@jetbrains.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
getFileContent(List<VcsRootInstanceEntry> vcsRootEntries, String relativePath)
Get the file content for the latest revision detected by TeamCity during the last checking for changes process, searching it in the provided list of VCS rootsbyte[]
getFileContent(Build build, String filePath)
Get binary content of the single file in modification set.byte[]
getFileContent(SBuildType buildType, String relativePath)
Get the file content for the latest revision detected by TeamCity during the last checking for changes process, for given relative path in the given build configuration.
-
-
-
Method Detail
-
getFileContent
@NotNull byte[] getFileContent(Build build, String filePath) throws VcsException
Get binary content of the single file in modification set.- Parameters:
filePath
- - relative file path regarding to the project root, "checkout root" from vcs root should not be includedbuild
- build for which file content should be obtained- Returns:
- - specified file content, corresponding to the build
- Throws:
VcsException
- - throw this exception if some problem occurred while collecting changes or changes cannot be collected because of invalid configuration, or if file, corresponding to specified path cannot be found.
-
getFileContent
@Nullable byte[] getFileContent(@NotNull SBuildType buildType, @Nullable String relativePath) throws VcsException
Get the file content for the latest revision detected by TeamCity during the last checking for changes process, for given relative path in the given build configuration.- Parameters:
buildType
- build configurationrelativePath
- relative path to the file to be searched in the project VCS roots- Returns:
- null if no corresponding file found
- Throws:
VcsException
- when VCS access problem occurs
-
getFileContent
@Nullable byte[] getFileContent(@NotNull List<VcsRootInstanceEntry> vcsRootEntries, @Nullable String relativePath) throws VcsException
Get the file content for the latest revision detected by TeamCity during the last checking for changes process, searching it in the provided list of VCS roots- Parameters:
vcsRootEntries
- search file content in a given list of VCS root entriesrelativePath
- relative path to the file to be searched in the project VCS roots- Returns:
- null if no corresponding file found
- Throws:
VcsException
- when VCS access problem occurs- See Also:
VcsRootEntry
-
-