Class TriggerRulesImpl
- java.lang.Object
-
- jetbrains.buildServer.vcs.FileRuleSet<FileRule,FileRule>
-
- jetbrains.buildServer.buildTriggers.triggerRules.TriggerRulesImpl
-
- All Implemented Interfaces:
TriggerRules,Loggable
public class TriggerRulesImpl extends FileRuleSet<FileRule,FileRule> implements TriggerRules
-
-
Field Summary
Fields Modifier and Type Field Description static StringVCS_ROOT_INSTANCE_PROPERTY_KEY-
Fields inherited from class jetbrains.buildServer.vcs.FileRuleSet
EXCLUDE_PREFIX, IGNORE_CASE_MARK, INCLUDE_PREFIX
-
-
Constructor Summary
Constructors Constructor Description TriggerRulesImpl(String body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FileRulecreateNewExcludeRule(String line)protected FileRulecreateNewExcludeRule(FileRule includeRule)protected FileRulecreateNewIncludeRule(String rule)protected FileRulecreateNewIncludeRule(FileRule includeRule)protected voiddoPostInitProcess(List<FileRule> includeRules, List<FileRule> excludeRules)Set<String>getUsedVcsRootsIds()Each Trigger rule can reference to VCS root by its external id.booleanisIncludeAll()booleanshouldInclude(SVcsModification modification, Collection<CheckoutRules> allCheckoutRules)Checks if the given modification should be included for given set of checkout rulesStringtoString()-
Methods inherited from class jetbrains.buildServer.vcs.FileRuleSet
convertToLines, createPropertiesFilter, describe, equals, findMostSpecific, getBody, getExcludeRules, getExcludeRules, getIncludeRuleFor, getIncludeRuleMerged, getIncludeRules, getIncludeRules, hashCode, isEmpty, isIgnoreCase, isSubDir, isUnder, postProcessCreatedRules, preparePath, setIgnoreCase, shouldInclude, shouldInclude, shouldInclude, shouldInclude, shouldInclude, sortByFrom
-
-
-
-
Field Detail
-
VCS_ROOT_INSTANCE_PROPERTY_KEY
public static final String VCS_ROOT_INSTANCE_PROPERTY_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TriggerRulesImpl
public TriggerRulesImpl(@NotNull String body)
-
-
Method Detail
-
getUsedVcsRootsIds
public Set<String> getUsedVcsRootsIds()
Description copied from interface:TriggerRulesEach Trigger rule can reference to VCS root by its external id. This method collects and returns ids of all VCS roots that are used in the whole set of rules.- Specified by:
getUsedVcsRootsIdsin interfaceTriggerRules
-
isIncludeAll
public boolean isIncludeAll()
- Specified by:
isIncludeAllin interfaceTriggerRules- Returns:
- true if rules include all changes
-
shouldInclude
public boolean shouldInclude(@NotNull SVcsModification modification, @NotNull Collection<CheckoutRules> allCheckoutRules)Description copied from interface:TriggerRulesChecks if the given modification should be included for given set of checkout rules- Specified by:
shouldIncludein interfaceTriggerRules- Parameters:
modification- modification of interestallCheckoutRules- checkout rules- Returns:
- see above
-
doPostInitProcess
protected void doPostInitProcess(List<FileRule> includeRules, List<FileRule> excludeRules)
- Specified by:
doPostInitProcessin classFileRuleSet<FileRule,FileRule>
-
createNewIncludeRule
protected FileRule createNewIncludeRule(String rule)
- Specified by:
createNewIncludeRulein classFileRuleSet<FileRule,FileRule>
-
createNewExcludeRule
protected FileRule createNewExcludeRule(String line)
- Specified by:
createNewExcludeRulein classFileRuleSet<FileRule,FileRule>
-
createNewIncludeRule
protected FileRule createNewIncludeRule(FileRule includeRule)
- Specified by:
createNewIncludeRulein classFileRuleSet<FileRule,FileRule>
-
createNewExcludeRule
protected FileRule createNewExcludeRule(FileRule includeRule)
- Specified by:
createNewExcludeRulein classFileRuleSet<FileRule,FileRule>
-
-