예제 #1
0
        static int Main(string[] args)
        {
            try
            {
                Console.WriteLine("Svn2Svn: {0}", Assembly.GetExecutingAssembly().GetName().Version);

                Svn2SvnCommandLineArguments commandLineArgs = new Svn2SvnCommandLineArguments();
                if (!Parser.ParseArgumentsWithUsage(args, commandLineArgs))
                {
                    return(-1);
                }

                Console.WriteLine("From: {0}", commandLineArgs.Source);
                Console.WriteLine("To: {0}", commandLineArgs.Destination);

                SvnCopy svnCopy = new SvnCopy(commandLineArgs);
                svnCopy.Copy();

                return(0);
            }
            catch (Exception ex)
            {
                Console.Error.WriteLine(ex.Message);
#if DEBUG
                Console.Error.WriteLine(ex.StackTrace);
#endif
                return(-1);
            }
        }
예제 #2
0
파일: Program.cs 프로젝트: ainiaa/svn2svn
        static int Main(string[] args)
        {
            try
            {
                Console.WriteLine("Svn2Svn: {0}", Assembly.GetExecutingAssembly().GetName().Version);

                Svn2SvnCommandLineArguments commandLineArgs = new Svn2SvnCommandLineArguments();
                if (!Parser.ParseArgumentsWithUsage(args, commandLineArgs))
                    return -1;

                Console.WriteLine("From: {0}", commandLineArgs.Source);
                Console.WriteLine("To: {0}", commandLineArgs.Destination);

                SvnCopy svnCopy = new SvnCopy(commandLineArgs);
                svnCopy.Copy();

                return 0;
            }
            catch (Exception ex)
            {
                Console.Error.WriteLine(ex.Message);
#if DEBUG
                Console.Error.WriteLine(ex.StackTrace);
#endif
                return -1;
            }
        }
예제 #3
0
 public SvnCopy(Svn2SvnCommandLineArguments args)
 {
     _args = args;
 }
예제 #4
0
파일: SvnCopy.cs 프로젝트: ainiaa/svn2svn
 public SvnCopy(Svn2SvnCommandLineArguments args)
 {
     _args = args;
 }