public interface VcsContentManager
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getFileContent(Build build,
java.lang.String filePath)
Get binary content of the single file in modification set.
|
byte[] |
getFileContent(java.util.List<VcsRootInstanceEntry> vcsRootEntries,
java.lang.String relativePath)
Get the latest file content, searching it in the provided list of VCS roots
|
byte[] |
getFileContent(SBuildType buildType,
java.lang.String relativePath)
Get latest file content for given relative path in the given build configuration.
|
@NotNull byte[] getFileContent(Build build, java.lang.String filePath) throws VcsException
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 obtainedVcsException - - 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.@Nullable
byte[] getFileContent(@NotNull
SBuildType buildType,
@Nullable
java.lang.String relativePath)
throws VcsException
buildType - build configurationrelativePath - relative path to the file to be searched in the project VCS rootsVcsException - when VCS access problem occurs@Nullable
byte[] getFileContent(@NotNull
java.util.List<VcsRootInstanceEntry> vcsRootEntries,
@Nullable
java.lang.String relativePath)
throws VcsException
vcsRootEntries - search file content in a given list of VCS root entriesrelativePath - relative path to the file to be searched in the project VCS rootsVcsException - when VCS access problem occursVcsRootEntry