|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjetbrains.buildServer.vcs.VcsSupportUtil
public class VcsSupportUtil
Set of useful methods which can be used in the implementation of VcsSupport
| Nested Class Summary | |
|---|---|
static class |
VcsSupportUtil.DateVersionComparator
Default implementation to compare date-based versions |
static class |
VcsSupportUtil.IntVersionComparator
Default implementation to compare integer versions |
static class |
VcsSupportUtil.StringVersionComparator
Default implementation to compare string versions |
| Method Summary | |
|---|---|
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 instead |
static java.util.List<ModificationData> |
collectBuildChanges(VcsRoot root,
java.lang.String fromVersion,
java.lang.String toVersion,
CheckoutRules commonRule,
CollectChangesByIncludeRule collecter)
Deprecated. implement jetbrains.buildServer.vcs.CollectChangesByIncludeRules instead |
static void |
exportFilesFromDisk(PatchBuilder builder,
java.io.File file)
Exports whole directory content |
static java.lang.String |
removeFromAddTo(java.lang.String path,
IncludeRule includeRule)
In path, replaces includeRule.getFrom with includeRule.getTo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.util.List<ModificationData> collectBuildChanges(VcsRoot root,
java.lang.String fromVersion,
java.lang.String toVersion,
CheckoutRules commonRule,
CollectChangesByIncludeRule collecter)
throws VcsException
root - vcs root to collect changes forfromVersion - version to collect changes from (excluding this version)toVersion - version to collect changes to (including this version)commonRule - checkout rule to collect changes forcollecter - interface which collects changes for one include rule
VcsException - rethrows exception, thrown by CollectChangesByIncludeRule.collectBuildChanges(VcsRoot, String, String, IncludeRule)
implementation object
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
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
java.io.IOException - exception occurred while sending patch to patch builder
VcsException - exception occurred while getting patch from verison control
public static void exportFilesFromDisk(PatchBuilder builder,
java.io.File file)
throws java.io.IOException
builder - patch builder.file - root directory.
java.io.IOException - listing or reading file problem occurred.
public static java.lang.String removeFromAddTo(java.lang.String path,
IncludeRule includeRule)
path - path for replacementincludeRule - include rule
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||