|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjetbrains.buildServer.vcs.FileRuleSet<IncludeRule,FileRule>
jetbrains.buildServer.vcs.CheckoutRules
public class CheckoutRules
Contains a number of rules how to layout project sources on agent side.
| Field Summary | |
|---|---|
static CheckoutRules |
DEFAULT
|
static java.lang.String |
INCLUDE_SEP
|
| Constructor Summary | |
|---|---|
CheckoutRules(java.util.List<IncludeRule> includeRules,
java.util.List<FileRule> excludeRules)
Creates rules object on include and exclude rules lists. |
|
CheckoutRules(java.util.List<java.lang.String> body)
Creates new checkout rules instance on a list of string rules. |
|
CheckoutRules(java.lang.String body)
Creates new checkout rules instance on string rules presentation. |
|
| Method Summary | |
|---|---|
boolean |
containsWildcards()
Checks if some rule from the set contains wildcards. |
static CheckoutRules |
createCommonRule(java.util.List<CheckoutRules> ruleses)
Creates 'union' rule |
protected FileRule |
createNewExcludeRule(FileRule includeRule)
|
protected FileRule |
createNewExcludeRule(java.lang.String line)
|
protected IncludeRule |
createNewIncludeRule(IncludeRule includeRule)
|
protected IncludeRule |
createNewIncludeRule(java.lang.String rule)
|
CheckoutRules |
createNewRulesForPrefix(java.lang.String prefixPath)
Creates new checkout rule set with prefix appended to every rule right part. |
static CheckoutRules |
createOn(java.lang.String ruleStr)
Creates new rule set on the specified rules string presentation. |
protected void |
doPostInitProcess(java.util.List<IncludeRule> includeRules,
java.util.List<FileRule> excludeRules)
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getAsString()
|
java.util.List<IncludeRule> |
getRootIncludeRules()
Returns include rules sorted by from part. |
int |
hashCode()
|
static boolean |
isCorrect(java.lang.String line)
Returns true if line represents syntactically correct include or exclude rule. |
java.lang.String |
map(java.lang.String path)
Maps vcs relative file path to path described by checkout rules. |
protected void |
postProcessCreatedRules(java.util.List<IncludeRule> includeRules,
java.util.List<FileRule> excludeRules)
|
java.lang.String |
toString()
|
| Methods inherited from class jetbrains.buildServer.vcs.FileRuleSet |
|---|
createPropertiesFilter, findMostSpecific, getBody, getExcludeRules, getExcludeRules, getIncludeRuleFor, getIncludeRuleMerged, getIncludeRules, getIncludeRules, isSubDir, preparePath, shouldInclude, shouldInclude, shouldInclude, shouldInclude, sortByFrom |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final CheckoutRules DEFAULT
public static final java.lang.String INCLUDE_SEP
| Constructor Detail |
|---|
public CheckoutRules(java.util.List<java.lang.String> body)
body - list of string rules.public CheckoutRules(java.lang.String body)
body - string rule presentation.
public CheckoutRules(java.util.List<IncludeRule> includeRules,
java.util.List<FileRule> excludeRules)
includeRules - include rules list.excludeRules - exclude rules list.| Method Detail |
|---|
@Nullable public java.lang.String map(java.lang.String path)
path - to map
public static CheckoutRules createCommonRule(java.util.List<CheckoutRules> ruleses)
ruleses - given rule set.
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getAsString()
public static boolean isCorrect(@NotNull
java.lang.String line)
line - include or exclude rule
public java.util.List<IncludeRule> getRootIncludeRules()
public CheckoutRules createNewRulesForPrefix(java.lang.String prefixPath)
prefixPath - specified prefix.
protected void postProcessCreatedRules(java.util.List<IncludeRule> includeRules,
java.util.List<FileRule> excludeRules)
postProcessCreatedRules in class FileRuleSet<IncludeRule,FileRule>
protected void doPostInitProcess(java.util.List<IncludeRule> includeRules,
java.util.List<FileRule> excludeRules)
doPostInitProcess in class FileRuleSet<IncludeRule,FileRule>protected IncludeRule createNewIncludeRule(java.lang.String rule)
createNewIncludeRule in class FileRuleSet<IncludeRule,FileRule>protected FileRule createNewExcludeRule(java.lang.String line)
createNewExcludeRule in class FileRuleSet<IncludeRule,FileRule>protected IncludeRule createNewIncludeRule(IncludeRule includeRule)
createNewIncludeRule in class FileRuleSet<IncludeRule,FileRule>protected FileRule createNewExcludeRule(FileRule includeRule)
createNewExcludeRule in class FileRuleSet<IncludeRule,FileRule>public static CheckoutRules createOn(java.lang.String ruleStr)
ruleStr - specified rule set string presentation.
public boolean containsWildcards()
true if some rule from the set contains wildcard, false otherwise.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||