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