/// <summary> /// The entry point for the DataMigration application /// </summary> /// <param name="args">The command-line arguments. Currently, 'nodownload', /// 'postprocessload', and 'singledatasource' are the only /// supported arguments. The command line processing is very crude, and could stand /// to be beefed up. /// </param> public static void Main(string[] args) { try { var fileInfo = new FileInfo ( Path.Combine (Environment.CurrentDirectory, "log4net.config")); log4net.Config.XmlConfigurator.Configure (fileInfo); ProcessCommandLineArgs (args); var plan = DataMigrationPlan.GetPlan (); var engine = new MigrationEngine { MigrationPlan = plan, SingleDataSourceCode = singleDataSourceCode, NoDownload = noDownload, PostProcessOnlyLoadNum = postProcessOnlyLoadNum, }; engine.Transform (); } catch (Exception ex) { log.ErrorFormat ("Error doing UserMigration = {0}, stack = {1}", ex.Message, ex.StackTrace); } }