예제 #1
0
        static void Main(string[] args)
        {
            if ((args.Length == 1) && (args[0] == "/?"))
            {
                DisplayHelp();
                return;
            }

            Common.ArgumentParser argParser = new Common.ArgumentParser(args);
            bool mergeSuccess;

            SourceUtilLib.ISourcePuller sourcePuller = SourceUtilLib.Settings.SourcePullerStrategies[argParser.ArgumentSourceType];
            sourcePuller.TFSSourceArguments = argParser.SourceArguments;
            sourcePuller.WorkspaceName = System.Configuration.ConfigurationManager.AppSettings.Get("WorkspaceName");
            sourcePuller.DefaultProjectPath = System.Configuration.ConfigurationManager.AppSettings.Get("DefaultProjectPath");
            sourcePuller.TfsTeamProjectCollectionPath = System.Configuration.ConfigurationManager.AppSettings.Get("TfsTeamProjectCollection.Path");

            SourceUtilLib.SourceMergeManager mgr = new SourceUtilLib.SourceMergeManager(sourcePuller);
            mergeSuccess = mgr.Merge();

            if (!mergeSuccess)
                Console.WriteLine("There were errors when merging.  Please investigate");

            Console.WriteLine("Processing Complete...");
            Console.ReadLine();
        }
예제 #2
0
        static void Main(string[] args)
        {
            if ((args.Length == 1) && (args[0] == "/?"))
            {
                DisplayHelp();
                return;
            }

            Common.ArgumentParser argParser = new Common.ArgumentParser(args);
            bool mergeSuccess;

            SourceUtilLib.ISourcePuller sourcePuller = SourceUtilLib.Settings.SourcePullerStrategies[argParser.ArgumentSourceType];
            sourcePuller.TFSSourceArguments           = argParser.SourceArguments;
            sourcePuller.WorkspaceName                = System.Configuration.ConfigurationManager.AppSettings.Get("WorkspaceName");
            sourcePuller.DefaultProjectPath           = System.Configuration.ConfigurationManager.AppSettings.Get("DefaultProjectPath");
            sourcePuller.TfsTeamProjectCollectionPath = System.Configuration.ConfigurationManager.AppSettings.Get("TfsTeamProjectCollection.Path");

            SourceUtilLib.SourceMergeManager mgr = new SourceUtilLib.SourceMergeManager(sourcePuller);
            mergeSuccess = mgr.Merge();

            if (!mergeSuccess)
            {
                Console.WriteLine("There were errors when merging.  Please investigate");
            }

            Console.WriteLine("Processing Complete...");
            Console.ReadLine();
        }