Ejemplo n.º 1
0
        public static ActionOutcome Process(Outcome mostConfidentOutcome)
        {
            Dictionary <string, string> branchNameAndPath = new Dictionary <string, string> {
                { "trunk", GlobalValues.TrunkSolutionPath }
            };
            string branchName = mostConfidentOutcome.Entities.branch_name[0].value;

            if (!branchNameAndPath.ContainsKey(branchName))
            {
                return(ActionOutcome.CommandNotFound);
            }

            CommonWindowsCalls.Process(branchNameAndPath[branchName]);

            return(ActionOutcome.Success);
        }
Ejemplo n.º 2
0
        public static ActionOutcome Process(Outcome mostConfidentOutcome)
        {
            Dictionary <string, string> branchNameAndPath = new Dictionary <string, string>
            {
                { "trunk", @"C:\Sourcen\trunk\trunk" },
                { "frozen", @"C:\Sourcen\frozen\frozen" }
            };

            string branchName = mostConfidentOutcome.Entities.branch_name[0].value;

            if (!branchNameAndPath.ContainsKey(branchName))
            {
                return(ActionOutcome.CommandNotFound);
            }

            CommonWindowsCalls.Process(@"C:\Programme\tortoiseSVN\bin\TortoiseProc.exe", string.Format(@"/command:commit /path:{0}", branchNameAndPath[branchName]));
            return(ActionOutcome.Success);
        }
Ejemplo n.º 3
0
        public static ActionOutcome Process(Outcome mostConfidentOutcome)
        {
            CommonWindowsCalls.Process(@"C:\Program Files (x86)\MediaMonkey\MediaMonkey.exe");

            return(ActionOutcome.Success);
        }