/// <summary> /// Goes through all the subdirectories of a project and interprets them as source sets /// </summary> /// <param name="project">The project to be extended with source sets</param> /// <param name="projectDir">The project's directory</param> /// <param name="ignoreLists">The suite's source set ignore lists</param> private void DiscoverProjectSources(Project project, IFileSystemDirectory projectDir, SourceSetIgnoreLists ignoreLists) { foreach (var sourceSetName in projectDir.ChildDirectories) { var sourceSet = project.GetSourceSet(sourceSetName); AddAllFiles(sourceSet, projectDir.GetChildDirectory(sourceSetName), ignoreLists.Get(new SourceSetType(sourceSetName))); } }
private void LoadSourceSetIgnoreLists(SourceSetIgnoreLists ignoreLists, YamlNode rootNode) { foreach (var item in parser.EnumerateNamedNodesOf(rootNode, "ignore-lists")) { var ignoreList = ignoreLists.Get(item.Key); var mappedItem = (YamlMappingNode)item.Value; foreach (var expression in parser.EnumerateNodesOf((YamlSequenceNode)mappedItem.Children[new YamlScalarNode("ignore")])) { ignoreList.Add(((YamlScalarNode)expression).Value); } } }
private void LoadSourceSetIgnoreLists(SourceSetIgnoreLists ignoreLists, YamlNode rootNode) { foreach (var item in parser.EnumerateNamedNodesOf(rootNode, "ignore-lists")) { var ignoreList = ignoreLists.Get(item.Key); var mappedItem = (YamlMappingNode) item.Value; foreach (var expression in parser.EnumerateNodesOf((YamlSequenceNode)mappedItem.Children[new YamlScalarNode("ignore")])) { ignoreList.Add(((YamlScalarNode)expression).Value); } } }