Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 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);
     }
 }
Exemplo n.º 3
0
 public static void AddFilesToZip(this ICakeContext context, FilePath zipFile, DirectoryPath start, FilePathCollection files, bool append)
 {
     context.AddFilesToZip(zipFile, start, "", files, append);
 }
Exemplo n.º 4
0
 public static void AddFilesToZip(this ICakeContext context, FilePath zipFile, DirectoryPath start, string newStart, FilePathCollection files)
 {
     context.AddFilesToZip(zipFile, start, newStart, files, false);
 }
Exemplo n.º 5
0
 public static void AddFilesToZip(this ICakeContext context, FilePath zipFile, FilePathCollection files)
 {
     context.AddFilesToZip(zipFile, ".", "", files, false);
 }