Class ArtifactDependencyFileRule<T extends FileRuleSet>
- java.lang.Object
-
- jetbrains.buildServer.vcs.FileRule<T>
-
- jetbrains.buildServer.artifacts.rules.ArtifactDependencyFileRule<T>
-
public class ArtifactDependencyFileRule<T extends FileRuleSet> extends FileRule<T>
Created by Nikita.Skvortsov Date: 4/12/11, 4:29 PM
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.vcs.FileRule
myFromFull, myFromPath
-
-
Constructor Summary
Constructors Constructor Description ArtifactDependencyFileRule(String from, String to, String archivePath, T t, boolean isInclude, boolean isOptional)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
createPatternString(String from)
static Set<ArtifactDependencyFileRule<ArtifactDepRuleSet>>
findOptionalRules(Set<ArtifactDependencyFileRule<ArtifactDepRuleSet>> unsatisfiedRules)
String
getArchivePath()
String
getMatchedHead(String path)
returns matched head path without trailing wildcards if matched with path, null otherwiseString
getTo()
boolean
isOptional()
static String
toFromList(Collection<ArtifactDependencyFileRule<ArtifactDepRuleSet>> rules)
String
trimMatchedPath(String sourcePath)
-
Methods inherited from class jetbrains.buildServer.vcs.FileRule
getAdditionalProperties, getFrom, getParentRules, getPattern, getProperty, isAbsolutePath, isIsInclude, isRoot, preparePathWithLowercase, propertiesMatch, toString
-
-
-
-
Method Detail
-
toFromList
@NotNull public static String toFromList(Collection<ArtifactDependencyFileRule<ArtifactDepRuleSet>> rules)
-
findOptionalRules
@NotNull public static Set<ArtifactDependencyFileRule<ArtifactDepRuleSet>> findOptionalRules(Set<ArtifactDependencyFileRule<ArtifactDepRuleSet>> unsatisfiedRules)
-
getMatchedHead
@Nullable public String getMatchedHead(@NotNull String path)
Description copied from class:FileRule
returns matched head path without trailing wildcards if matched with path, null otherwise- Overrides:
getMatchedHead
in classFileRule<T extends FileRuleSet>
- Parameters:
path
- file path to match with- Returns:
- matched head path without trailing wildcards
-
createPatternString
@NotNull protected String createPatternString(@NotNull String from)
- Overrides:
createPatternString
in classFileRule<T extends FileRuleSet>
-
getTo
@NotNull public String getTo()
-
getArchivePath
@NotNull public String getArchivePath()
-
isOptional
public boolean isOptional()
- Returns:
- true if this rule is an optional one, i.e. can be not satisfied when downloaeding artifacts
-
-