private Process InitCmdProc(string workingdir)
        {
            string shellcmd = LaunchCommand.Get().GetCmShellCommand();

            shellcmd = shellcmd.Replace("[GENDATESTAMP]", DateTime.Now.ToString(
                                            "yyyy-MM-dd-hh-mm-ss"));

            string cpath = LaunchCommand.Get().GetClientPath();

            if (cpath != string.Empty)
            {
                cpath    = Path.GetFullPath(cpath);
                shellcmd = shellcmd.Replace("[CLIENTPATH]", cpath);
            }

            Process result = InternalRun(shellcmd, workingdir, true);

            string line;

            do
            {
                line = result.StandardOutput.ReadLine();
                WriteLine(line);
            } while (line.IndexOf("Plastic SCM shell") < 0);

            return(result);
        }
Ejemplo n.º 2
0
        public static LaunchCommand Get()
        {
            if (mInstance == null)
                mInstance = new LaunchCommand();

            return mInstance;
        }
Ejemplo n.º 3
0
        public static LaunchCommand Get()
        {
            if (mInstance == null)
            {
                mInstance = new LaunchCommand();
            }

            return(mInstance);
        }