Esempio n. 1
0
        public override void Execute()
        {
            base.Execute();

            try
            {
                ReleaseRunner.IdentifyAndRemoveOldExtractionResults(Activator.RepositoryLocator, new PopupChecksUI("Checking Release Logs", true), _extractionConfiguration);
            }
            catch (Exception e)
            {
                ShowException("Error checking for stale extraction logs", e);
            }

            try
            {
                WordDataReleaseFileGenerator generator = new WordDataReleaseFileGenerator(_extractionConfiguration, Activator.RepositoryLocator.DataExportRepository);

                //null means leave word file on screen and dont save
                generator.GenerateWordFile(null);
            }
            catch (Exception e)
            {
                ExceptionViewer.Show(e);
            }
        }
Esempio n. 2
0
        public override void Execute()
        {
            base.Execute();

            try
            {
                ReleaseRunner.IdentifyAndRemoveOldExtractionResults(BasicActivator.RepositoryLocator, new AcceptAllCheckNotifier(), _extractionConfiguration);
            }
            catch (Exception e)
            {
                ShowException("Error checking for stale extraction logs", e);
            }

            try
            {
                WordDataReleaseFileGenerator generator = new WordDataReleaseFileGenerator(_extractionConfiguration, BasicActivator.RepositoryLocator.DataExportRepository);

                //null means leave word file on screen and dont save
                generator.GenerateWordFile(null);
            }
            catch (Exception e)
            {
                BasicActivator.ShowException("Failed to generate release document", e);
            }
        }