public static void AddCleanupFiles(this ICakeContext context, Solution solution, Project project, FilePath packagePath) { if (!string.IsNullOrEmpty(project.pathsAndFiles.pathToCleanupFiles)) { var files = context.GetFiles(project.pathsAndFiles.pathToCleanupFiles + "/*.txt"); context.AddFilesToZip(packagePath, project.pathsAndFiles.pathToCleanupFiles, solution.dnn.pathsAndFiles.packageCleanupFolder + "/" + project.packageName.NoSlashes(), files, true); } }
public static void AddScripts(this ICakeContext context, Solution solution, Project project, FilePath packagePath) { if (!string.IsNullOrEmpty(project.pathsAndFiles.pathToScripts)) { var files = context.GetFiles(project.pathsAndFiles.pathToScripts + "/*.SqlDataProvider"); context.AddFilesToZip(packagePath, project.pathsAndFiles.pathToScripts, solution.dnn.pathsAndFiles.packageScriptsFolder + "/" + project.packageName.NoSlashes(), files, true); } }
public static void AddFilesToZip(this ICakeContext context, FilePath zipFile, DirectoryPath start, FilePathCollection files, bool append) { context.AddFilesToZip(zipFile, start, "", files, append); }
public static void AddFilesToZip(this ICakeContext context, FilePath zipFile, DirectoryPath start, string newStart, FilePathCollection files) { context.AddFilesToZip(zipFile, start, newStart, files, false); }
public static void AddFilesToZip(this ICakeContext context, FilePath zipFile, FilePathCollection files) { context.AddFilesToZip(zipFile, ".", "", files, false); }