Example #1
0
        protected override void OnInitializeTask()
        {
            var settingsGroup = Project.GetSettings();

            sourceSettings = settingsGroup.GetSettingsGroup <CleanUpSourceSettings>();

            targetSettings = GetSetting <CleanUpTargetSettings>();

            if (targetSettings.MakeBackups)
            {
                BackupFiles();
            }

            var logFolder = Path.Combine(GetProjectFolder(), "Cleanup Logs");

            reportGenerator = new XmlReportGenerator(logFolder);
        }