コード例 #1
0
        static void Main(string[] args)
        {
            string basePath   = args[0];
            string localPath  = args[1];
            string otherPath  = args[2];
            string outputPath = args[3];

//            foreach (string s in args)
//            {
//                Console.WriteLine(s);
//            }

            Console.WriteLine("LiftMerge...");
            using (StreamWriter output = File.CreateText(outputPath))
            {
                LiftVersionControlMerger merger =
                    new LiftVersionControlMerger(File.ReadAllText(localPath),
                                                 File.ReadAllText(otherPath),
                                                 File.ReadAllText(basePath),
                                                 new PoorMansMergeStrategy());

                //output.WriteLine("<!-- Processed by LiftMerge {0}, {1}, {2} -->", basePath, localPath, otherPath);
                output.Write(merger.GetMergedLift());
            }
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: sillsdev/lift-standard
        static void Main(string[] args)
        {
            string basePath = args[0];
            string localPath = args[1];
            string otherPath = args[2];
            string outputPath = args[3];

            //            foreach (string s in args)
            //            {
            //                Console.WriteLine(s);
            //            }

               Console.WriteLine("LiftMerge...");
               using (StreamWriter output = File.CreateText(outputPath))
            {
                LiftVersionControlMerger merger =
                    new LiftVersionControlMerger(File.ReadAllText(localPath),
                                                File.ReadAllText(otherPath),
                                                File.ReadAllText(basePath),
                                                new PoorMansMergeStrategy());

                //output.WriteLine("<!-- Processed by LiftMerge {0}, {1}, {2} -->", basePath, localPath, otherPath);
                output.Write(merger.GetMergedLift());
            }
        }