// ----------------< perform Initial Project scanning >---------------- public void projectScanning(string path) { ProjectScanner ps = new ProjectScanner(); List <string> dir = ps.getProjectList(path); XMLEncoderDecoder xe = new XMLEncoderDecoder(); directory = xe.projectXML(dir); }
static void Main(string[] args) { string[] dir = Directory.GetDirectories(Path.GetFullPath("../../../TESTFOLDER")); List <string> dir1 = new List <string>(); foreach (string d in dir) { dir1.Add(d); } XMLEncoderDecoder xed = new XMLEncoderDecoder(); Console.Write("ProjectList:\n{0}", xed.projectXML(dir1)); repositoryForTestUP(); Console.Write("\nType Table XML:\n{0}", xed.typeTableXML(RepositoryForOutput.storageForOutput_)); List <ElemPackage> package = new List <ElemPackage>(); ElemPackage ep = new ElemPackage(); ep.filenamefrom = "file1"; ep.filenameto = "file2"; ElemPackage ep1 = new ElemPackage(); ep1.filenamefrom = "file3"; ep1.filenameto = "file4"; package.Add(ep); package.Add(ep1); Console.Write("\nDependency Result XML:\n{0}", xed.dependencyResultXML(RepositoryForRelation.storageForRelationship_, package)); List <Elem> type = xed.typeTableDecoding(xed.typeTableXML(RepositoryForOutput.storageForOutput_)); foreach (Elem e in type) { Console.Write("\n {0} {1} {2} {3}", e.filename, e.namespacename, e.type, e.name); } }
static void Main(string[] args) { string[] dir = Directory.GetDirectories(Path.GetFullPath("../../../TESTFOLDER")); List<string> dir1 = new List<string>(); foreach (string d in dir) dir1.Add(d); XMLEncoderDecoder xed=new XMLEncoderDecoder(); Console.Write("ProjectList:\n{0}", xed.projectXML(dir1)); repositoryForTestUP(); Console.Write("\nType Table XML:\n{0}", xed.typeTableXML(RepositoryForOutput.storageForOutput_)); List<ElemPackage> package = new List<ElemPackage>(); ElemPackage ep = new ElemPackage(); ep.filenamefrom = "file1"; ep.filenameto = "file2"; ElemPackage ep1 = new ElemPackage(); ep1.filenamefrom = "file3"; ep1.filenameto = "file4"; package.Add(ep); package.Add(ep1); Console.Write("\nDependency Result XML:\n{0}", xed.dependencyResultXML(RepositoryForRelation.storageForRelationship_,package)); List<Elem> type = xed.typeTableDecoding(xed.typeTableXML(RepositoryForOutput.storageForOutput_)); foreach (Elem e in type) Console.Write("\n {0} {1} {2} {3}", e.filename, e.namespacename, e.type, e.name); }