Package jetbrains.buildServer.vcs
Class VcsSupportUtil
- java.lang.Object
-
- jetbrains.buildServer.vcs.utils.VcsPluginUtil
-
- jetbrains.buildServer.vcs.VcsSupportUtil
-
public class VcsSupportUtil extends VcsPluginUtil
Set of useful methods which can be used in the implementation ofVcsSupportContext
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VcsSupportUtil.DateVersionComparator
Deprecated.Use base class insteadstatic class
VcsSupportUtil.IntVersionComparator
Deprecated.Use base class insteadstatic class
VcsSupportUtil.StringVersionComparator
Deprecated.Use base class instead-
Nested classes/interfaces inherited from class jetbrains.buildServer.vcs.utils.VcsPluginUtil
VcsPluginUtil.IncludeRuleHandler
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
buildPatch(VcsRoot root, java.lang.String fromVersion, java.lang.String toVersion, PatchBuilder builder, CheckoutRules checkoutRules, BuildPatchByIncludeRule patcher)
Deprecated.implement jetbrains.buildServer.vcs.BuildPatchByIncludeRules insteadstatic void
exportFilesFromDisk(PatchBuilder builder, java.io.File file)
Exports whole directory content-
Methods inherited from class jetbrains.buildServer.vcs.utils.VcsPluginUtil
buildPatch, collectBuildChanges, collectBuildChanges, getRepositoryVersion, processIncludeRules, processRelativePaths, removeFromAddTo, shouldDebugVcsCallsFor
-
-
-
-
Method Detail
-
buildPatch
@Deprecated public static void buildPatch(VcsRoot root, java.lang.String fromVersion, java.lang.String toVersion, PatchBuilder builder, CheckoutRules checkoutRules, BuildPatchByIncludeRule patcher) throws java.io.IOException, VcsException
Deprecated.implement jetbrains.buildServer.vcs.BuildPatchByIncludeRules insteadService method, allows to build patch for each root include rule in the specified checkout rules- Parameters:
root
- vcs root to build patch forfromVersion
- version to build patch fromtoVersion
- version to build patch tobuilder
- patch buildercheckoutRules
- rules to build patch for (rules how to map repository file names to working ones)patcher
- implementation, builds patch for one specified include rule- Throws:
java.io.IOException
- exception occurred while sending patch to patch builderVcsException
- exception occurred while getting patch from version control
-
exportFilesFromDisk
public static void exportFilesFromDisk(PatchBuilder builder, java.io.File file) throws java.io.IOException
Exports whole directory content- Parameters:
builder
- patch builder.file
- root directory.- Throws:
java.io.IOException
- listing or reading file problem occurred.
-
-