Exemple #1
0
        internal static void fBeginBuild()
        {
            //sArg = " -wCwcUpd C:/aaa ";
            Data.sArgExpand = ArgProcess.fExpandAll(Data.sArg);  //TODO Expand in another thread
            Data.sArgExpand = ArgProcess.fTestIfBeginWithAFile(Data.sArgExpand);

            Build.StartBuild();
        }
Exemple #2
0
        internal static void fMainLoop()
        {
            if (!SysAPI.bIsLoadedFromAnotherCwcInstance)
            {
                if (Base.bAlive)
                {
                    // PipeInput.fConsoleExit(null);//Show >>
                    //     Data.oLaunchProject.fConsoleExit(null);//Show >>

                    while (Base.bAlive || Data.bForceTestNextCmd)
                    {
                        Data.bForceTestNextCmd = false;

                        switch (Data.sCmd)
                        {
                        case "StopBuild": Data.sCmd = "";
                            //  Debug.fTrace("****StopBuild!!");
                            Data.oLaunchProject.fCancel();
                            break;

                        case "StartBuild": Data.sCmd = "";
                            // Debug.fTrace("****StartBuild!!");
                            //  Console.WriteLine("start build");
                            Build.StartBuild();
                            break;

                        case "Delocalise": Data.sCmd = "";
                            //    Console.WriteLine("fDelocaliseCmd");
                            Delocalise.fDelocaliseCmd();

                            break;
                        }


                        //   Thread.Sleep(1);
                        //Thread.Sleep(1);
                        Thread.CurrentThread.Join(1);
                        if (Data.bConsoleMode && !Data.bNowBuilding)
                        {
                            Base.bAlive = false;
                        }
                    }
                }
            }
        }