protected override void OnInitializeTask()
        {
            settings = GetSetting <CleanUpSourceSettings>();

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

            reportGenerator = new XmlReportGenerator(logFolder);
        }
Example #2
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);
        }