3 implementations of IPathMatcher
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (3)
FileSourceStateMatcher.cs (1)
8
internal class FileSourceStateMatcher :
IPathMatcher
GlobbingPatternMatcher.cs (1)
9
internal class GlobbingPatternMatcher :
IPathMatcher
ListGlobbingPatternMatcher.cs (1)
9
internal class ListGlobbingPatternMatcher :
IPathMatcher
37 references to IPathMatcher
Microsoft.TemplateEngine.Core (12)
Util\Orchestrator.cs (12)
87
private static List<KeyValuePair<
IPathMatcher
, IProcessor>> CreateFileGlobProcessors(ILogger logger, IGlobalRunSpec spec)
89
List<KeyValuePair<
IPathMatcher
, IProcessor>> processorList = new List<KeyValuePair<
IPathMatcher
, IProcessor>>();
93
foreach (KeyValuePair<
IPathMatcher
, IRunSpec> runSpec in spec.Special)
99
processorList.Add(new KeyValuePair<
IPathMatcher
, IProcessor>(runSpec.Key, processor));
132
foreach (
IPathMatcher
include in spec.Include)
137
foreach (
IPathMatcher
exclude in spec.Exclude)
192
List<KeyValuePair<
IPathMatcher
, IProcessor>> fileGlobProcessors = CreateFileGlobProcessors(_logger, spec);
203
foreach (
IPathMatcher
include in spec.Include)
208
foreach (
IPathMatcher
exclude in spec.Exclude)
220
foreach (
IPathMatcher
copyOnly in spec.CopyOnly)
253
private void ProcessFile(IFile sourceFile, string sourceRel, string targetDir, IGlobalRunSpec spec, IProcessor fallback, IEnumerable<KeyValuePair<
IPathMatcher
, IProcessor>> fileGlobProcessors)
Microsoft.TemplateEngine.Core.Contracts (4)
IGlobalRunSpec.cs (4)
10
IReadOnlyList<
IPathMatcher
> Exclude { get; }
12
IReadOnlyList<
IPathMatcher
> Include { get; }
14
IReadOnlyList<
IPathMatcher
> CopyOnly { get; }
20
IReadOnlyList<KeyValuePair<
IPathMatcher
, IRunSpec>> Special { get; }
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (21)
FileSourceHierarchicalPathMatcher.cs (6)
100
private readonly IReadOnlyList<
IPathMatcher
> _include;
102
private readonly IReadOnlyList<
IPathMatcher
> _exclude;
104
private readonly IReadOnlyList<
IPathMatcher
> _copyOnly;
142
private static IReadOnlyList<
IPathMatcher
> SetupMatcherList(IReadOnlyList<string> fileSources)
145
List<
IPathMatcher
> paths = new List<
IPathMatcher
>(expect);
GlobalRunSpec.cs (10)
39
List<KeyValuePair<
IPathMatcher
, IRunSpec>> specials = new List<KeyValuePair<
IPathMatcher
, IRunSpec>>();
53
specials.Add(new KeyValuePair<
IPathMatcher
, IRunSpec>(new GlobbingPatternMatcher(glob), spec));
60
public IReadOnlyList<
IPathMatcher
> Include { get; private set; } = [];
62
public IReadOnlyList<
IPathMatcher
> Exclude { get; private set; } = [];
64
public IReadOnlyList<
IPathMatcher
> CopyOnly { get; private set; } = [];
70
public IReadOnlyList<KeyValuePair<
IPathMatcher
, IRunSpec>> Special { get; }
84
Include = new List<
IPathMatcher
>() { new FileSourceStateMatcher(FileDispositionStates.Include, matcher) };
85
Exclude = new List<
IPathMatcher
>() { new FileSourceStateMatcher(FileDispositionStates.Exclude, matcher) };
86
CopyOnly = new List<
IPathMatcher
>() { new FileSourceStateMatcher(FileDispositionStates.CopyOnly, matcher) };
ListGlobbingPatternMatcher.cs (5)
11
private readonly IReadOnlyList<
IPathMatcher
> _pathMatchers;
17
List<
IPathMatcher
> pathMatchers = new List<
IPathMatcher
>();
36
foreach (
IPathMatcher
matcher in _pathMatchers)
50
foreach (
IPathMatcher
matcher in _pathMatchers)