Exemple #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);
            }
        }
Exemple #2
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;
            }
        }
Exemple #3
0
 public SvnCopy(Svn2SvnCommandLineArguments args)
 {
     _args = args;
 }
Exemple #4
0
 public SvnCopy(Svn2SvnCommandLineArguments args)
 {
     _args = args;
 }