Class ArtifactDepRuleSet
- java.lang.Object
-
- jetbrains.buildServer.vcs.FileRuleSet<ArtifactDependencyFileRule<ArtifactDepRuleSet>,ArtifactDependencyFileRule<ArtifactDepRuleSet>>
-
- jetbrains.buildServer.artifacts.rules.ArtifactDepRuleSet
-
- All Implemented Interfaces:
Loggable
public class ArtifactDepRuleSet extends FileRuleSet<ArtifactDependencyFileRule<ArtifactDepRuleSet>,ArtifactDependencyFileRule<ArtifactDepRuleSet>>
Created by Nikita.Skvortsov Date: 4/12/11, 4:29 PM
-
-
Field Summary
Fields Modifier and Type Field Description static StringOPTIONAL_MARKstatic StringOPTIONAL_MARK2-
Fields inherited from class jetbrains.buildServer.vcs.FileRuleSet
EXCLUDE_PREFIX, IGNORE_CASE_MARK, INCLUDE_PREFIX
-
-
Constructor Summary
Constructors Constructor Description ArtifactDepRuleSet(String body)
-
Method Summary
-
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
-
OPTIONAL_MARK
public static final String OPTIONAL_MARK
- See Also:
- Constant Field Values
-
OPTIONAL_MARK2
public static final String OPTIONAL_MARK2
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ArtifactDepRuleSet
public ArtifactDepRuleSet(@NotNull String body)
-
-
Method Detail
-
doPostInitProcess
protected void doPostInitProcess(@NotNull List<ArtifactDependencyFileRule<ArtifactDepRuleSet>> includeRules, @NotNull List<ArtifactDependencyFileRule<ArtifactDepRuleSet>> excludeRules)- Specified by:
doPostInitProcessin classFileRuleSet<ArtifactDependencyFileRule<ArtifactDepRuleSet>,ArtifactDependencyFileRule<ArtifactDepRuleSet>>
-
createNewIncludeRule
@Nullable @Contract("null -> null; !null -> !null") protected ArtifactDependencyFileRule<ArtifactDepRuleSet> createNewIncludeRule(@Nullable String rule)- Specified by:
createNewIncludeRulein classFileRuleSet<ArtifactDependencyFileRule<ArtifactDepRuleSet>,ArtifactDependencyFileRule<ArtifactDepRuleSet>>
-
createNewExcludeRule
@Nullable @Contract("null -> null; !null -> !null") protected ArtifactDependencyFileRule<ArtifactDepRuleSet> createNewExcludeRule(@Nullable String rule)- Specified by:
createNewExcludeRulein classFileRuleSet<ArtifactDependencyFileRule<ArtifactDepRuleSet>,ArtifactDependencyFileRule<ArtifactDepRuleSet>>
-
createNewIncludeRule
@NotNull protected ArtifactDependencyFileRule<ArtifactDepRuleSet> createNewIncludeRule(@NotNull ArtifactDependencyFileRule<ArtifactDepRuleSet> includeRule)
- Specified by:
createNewIncludeRulein classFileRuleSet<ArtifactDependencyFileRule<ArtifactDepRuleSet>,ArtifactDependencyFileRule<ArtifactDepRuleSet>>
-
createNewExcludeRule
@NotNull protected ArtifactDependencyFileRule<ArtifactDepRuleSet> createNewExcludeRule(@NotNull ArtifactDependencyFileRule<ArtifactDepRuleSet> excludeRule)
- Specified by:
createNewExcludeRulein classFileRuleSet<ArtifactDependencyFileRule<ArtifactDepRuleSet>,ArtifactDependencyFileRule<ArtifactDepRuleSet>>
-
getTargetPath
@NotNull public List<String> getTargetPath(@NotNull String sourcePath)
Evaluates the rules and returns the list of target paths applicable to the given source path. If the source path should be excluded, an empty list is returned.
For example, for the following set of rules:
+:source/**.txt => target0 +:source/*.txt => target1
and the source path of
source/file.txt, target paths will betarget0/file.txtandtarget1/file.txt.- Parameters:
sourcePath- the source path or Ant-style path pattern.- Returns:
- the list of target paths applicable to the given source path or path pattern.
- See Also:
FileRuleSet.shouldInclude(String),getRulePathPairs(String)
-
getRulePathPairs
@NotNull public List<Pair<ArtifactDependencyFileRule<ArtifactDepRuleSet>,String>> getRulePathPairs(@NotNull String sourcePath)
-
findArchiveRuleSet
@Nullable public ArtifactDepRuleSet findArchiveRuleSet(@NotNull String archivePath)
-
allRulesAreOptional
public boolean allRulesAreOptional()
- Returns:
- true if all include rules for this specification are optional ones, i.e. this artifact dependency can be skipped as a whole
- Since:
- 2024.03
-
-