static void Main(string[] args) { Console.Write("Testing FileMgr Class"); Console.Write("\n======================\n"); FileManager fm = new FileManager(); fm.addPattern("*.*"); fm.findFiles("../../"); List <string> files = fm.getFiles(); foreach (string file in files) { Console.Write("\n {0}", file); } Analyzer a = new Analyzer() doAnalysis(files); Display d = new Display(); d.display(files, relationships); XMLProcessor x = new XMLProcessor(); x.process(relationships); Console.ReadLine(); }
static void Main(string[] args) { Executive e = new Executive(); try { CommandLineParser argument = new CommandLineParser(); // Console.WriteLine("testing "); // Console.WriteLine("Command Line Argument is = \n" + args); argument.splitArgument(args, out e.path, out e.pattern, out e.options); // Console.WriteLine("path is {0}", e.path); if (e.path.Length == 0) { e.path = "../../"; } if (e.pattern.Count == 0) { e.pattern.Add("*.cs"); } // Console.WriteLine("File Path is {0}\nFile Pattern is {1}\nOptions are{2}", e.Path, e.pattern, e.options); } catch (Exception exp) { Console.WriteLine("There is an error in command line {0} \n", args); Console.WriteLine("\n Error Message {0} \n \n", exp.Message); } e.Recurse = e.options.Contains("/S"); e.Relationship = e.options.Contains("/R"); e.XMLProcessing = e.options.Contains("/X"); string[] files = Executive.getFiles(e.path, e.pattern, e.Recurse); Analyzer ana = new Analyzer(); Display d = new Display(); ana.doAnalysis(files); //d.display(files,e.Relationship); TypeBuilder tb = new TypeBuilder(); tb.addTypes(); Repository r = Repository.getInstance(); foreach (KeyValuePair <string, TypeElem> k in r.typeTable) { Console.WriteLine(" {0} and {1}", k.Key, k.Value); } if (e.XMLProcessing) { XMLProcessor xp = new XMLProcessor(); xp.process(e.Relationship); } Console.ReadLine(); }