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 String
VCS_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 FileRule
createNewExcludeRule(String line)
protected FileRule
createNewExcludeRule(FileRule includeRule)
protected FileRule
createNewIncludeRule(String rule)
protected FileRule
createNewIncludeRule(FileRule includeRule)
protected void
doPostInitProcess(List<FileRule> includeRules, List<FileRule> excludeRules)
Set<String>
getUsedVcsRootsIds()
Each Trigger rule can reference to VCS root by its external id.boolean
isIncludeAll()
boolean
shouldInclude(SVcsModification modification, Collection<CheckoutRules> allCheckoutRules)
Checks if the given modification should be included for given set of checkout rulesString
toString()
-
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:TriggerRules
Each 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:
getUsedVcsRootsIds
in interfaceTriggerRules
-
isIncludeAll
public boolean isIncludeAll()
- Specified by:
isIncludeAll
in interfaceTriggerRules
- Returns:
- true if rules include all changes
-
shouldInclude
public boolean shouldInclude(@NotNull SVcsModification modification, @NotNull Collection<CheckoutRules> allCheckoutRules)
Description copied from interface:TriggerRules
Checks if the given modification should be included for given set of checkout rules- Specified by:
shouldInclude
in interfaceTriggerRules
- Parameters:
modification
- modification of interestallCheckoutRules
- checkout rules- Returns:
- see above
-
doPostInitProcess
protected void doPostInitProcess(List<FileRule> includeRules, List<FileRule> excludeRules)
- Specified by:
doPostInitProcess
in classFileRuleSet<FileRule,FileRule>
-
createNewIncludeRule
protected FileRule createNewIncludeRule(String rule)
- Specified by:
createNewIncludeRule
in classFileRuleSet<FileRule,FileRule>
-
createNewExcludeRule
protected FileRule createNewExcludeRule(String line)
- Specified by:
createNewExcludeRule
in classFileRuleSet<FileRule,FileRule>
-
createNewIncludeRule
protected FileRule createNewIncludeRule(FileRule includeRule)
- Specified by:
createNewIncludeRule
in classFileRuleSet<FileRule,FileRule>
-
createNewExcludeRule
protected FileRule createNewExcludeRule(FileRule includeRule)
- Specified by:
createNewExcludeRule
in classFileRuleSet<FileRule,FileRule>
-
-