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

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

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

                FsCopy fsCopy = new FsCopy(commandLineArgs);
                fsCopy.Sync();
                return(0);
            }
            catch (Exception ex)
            {
                Console.Error.WriteLine(ex.Message);
#if DEBUG
                Console.Error.WriteLine(ex.StackTrace);
#endif
                return(-1);
            }
        }
Example #2
0
        static int Main(string[] args)
        {
            try
            {
                Console.WriteLine("Fs2Svn: {0}", Assembly.GetExecutingAssembly().GetName().Version);

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

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

                FsCopy fsCopy = new FsCopy(commandLineArgs);
                fsCopy.Sync();
                return 0;
            }
            catch (Exception ex)
            {
                Console.Error.WriteLine(ex.Message);
#if DEBUG
                Console.Error.WriteLine(ex.StackTrace);
#endif
                return -1;
            }
        }
Example #3
0
 public FsCopy(Fs2SvnCommandLineArguments args)
 {
     _args = args;
 }
Example #4
0
 public FsCopy(Fs2SvnCommandLineArguments args)
 {
     _args = args;
 }