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); }
public static LaunchCommand Get() { if (mInstance == null) mInstance = new LaunchCommand(); return mInstance; }
public static LaunchCommand Get() { if (mInstance == null) { mInstance = new LaunchCommand(); } return(mInstance); }