public interface IncludeRulePatchBuilder
BuildPatchByIncludeRules
Modifier and Type | Method and Description |
---|---|
void |
buildPatch(PatchBuilder builder,
IncludeRule includeRule)
Performs a portion of the patch building work corresponding to the given include rule.
|
void |
dispose()
Called after the last include rule is processed by
buildPatch(jetbrains.buildServer.vcs.patches.PatchBuilder, IncludeRule) . |
void buildPatch(@NotNull PatchBuilder builder, @NotNull IncludeRule includeRule) throws java.io.IOException, VcsException
builder
- use this object to construct patch in terms of file operations.
Note, that all paths passed to the builder should be relative to the include rule's path.includeRule
- include rule specifies VCS relative path to get sources.
Implementation have to use only FileRule.getFrom()
to
get relative VCS path suffix to checkout.java.io.IOException
- if an IO problem occursVcsException
- if a VCS problem occursIncrementalPatchImpossibleException
- if this exception is thrown during building an incremental patch
(fromVersion is not null) BuildPatchByIncludeRules.getPatchBuilder(VcsRoot, String, String)
will be called again with fromVersion set to null, i.e. full checkout patch will be requested.
This is useful for the situation when the underlying VCS repository has forgotten the fromVersion for some reason
and therefore VCS support is unable to extract the differences.void dispose() throws VcsException
buildPatch(jetbrains.buildServer.vcs.patches.PatchBuilder, IncludeRule)
.
An implementation can clean resources (close connections, etc.) obtained during patch builder construction.VcsException
- if an error occurred during disposing the instance