Exemplo n.º 1
0
        private static void Main(string[] args)
        {
            string input;
            string queryMsg = "Copy [y|n]?: ";

            PrintHeader();
            Console.Write(queryMsg);
            input = Console.ReadLine();
            while (input.Equals("y", StringComparison.CurrentCultureIgnoreCase))
            {
                Console.Clear();
                PrintHeader();

                foreach (var path in Paths)
                {
                    var sourceLabels = SourceLabels[path.Key];

                    foreach (var searchPattern in SearchPatterns)
                    {
                        var sourceCodeFiles = Solution.GetSourceCodeFiles(path.Key, searchPattern, sourceLabels);

                        foreach (var targetPath in path.Value)
                        {
                            foreach (var sourceCodeFile in sourceCodeFiles)
                            {
                                Copier.CopySourceCodeFile(path.Key, sourceCodeFile, targetPath, sourceLabels, TargetLabels);
                            }
                        }
                    }
                }
                Console.Write(queryMsg);
                input = Console.ReadLine();
            }
        }