Exemplo n.º 1
0
        //------------------------------------< Test Stub >------------------------------------------------------------
#if (Test_BuildLibrary)
        static void Main(String[] args)
        {
            XmlParser    xmlparse = new XmlParser();
            BuildLibrary build    = new BuildLibrary();

            /*   try{
             * String request = "../../../RepoStorage/BuildRequest.xml";
             * List<TestRequestData> sampledata = xmlparse.parseXmlRequest(request);
             * String buildStatus;
             * foreach (TestRequestData reqData in sampledata){
             *           if (reqData.Count > 0)
             *         {
             *             authorName = reqData[0].authorName;
             *             directorypath = "../../"+authorName + DateTime.Now.ToFileTime();
             *             Directory.createDirectory(directorypath);
             *             Console.Write("\n\n Created Temporary Directory  :: " + directorypath);
             *             buildStatus =  build.libraryCreation(directorypath,reqData);
             *         }
             *     else{
             *         Console.Write("No Data Present");
             *         }
             * Console.Write("\n Build Status"+buildStatus);
             *
             * }
             * }
             * catch(Exception e)
             * {
             *     Console.WriteLine(e.Message);
             * }
             * }*/
        }
Exemplo n.º 2
0
 //-------------< ChildBuildServer Port number sent by the mother builder to start a process from process pool >--------
 public BuildServer(int port)
 {
     initializeEnvironment(port);
     comm      = new Comm(ChildBuildServer.address, ChildBuildServer.port);
     Data      = new List <TestRequestData>();
     xmlParse  = new XmlParser();
     blib      = new BuildLibrary();
     rcvThread = new Thread(rcvThreadProc);
     rcvThread.Start();
 }