public override bool Execute()
 {
     var zipUtils = new ZipUtils();
     if (UpdatePackages) {
         Log.LogMessage("Updating packages");
         if (!Directory.Exists(ContentFolder)) {
             throw new IOException(string.Format("ContentFolder directory not exists {0}", ContentFolder));
         }
         var packageDir = Path.Combine(ContentFolder, "Packages");
         zipUtils.UpdatePackages(packageDir, BuildPath);
     }
     Log.LogMessage("Updating database");
     zipUtils.UpdateDatabaseInZip(BuildPath, DatabaseBackupPath);
     return true;
 }
Exemplo n.º 2
0
 public override bool Execute()
 {
     var zipUtils = new ZipUtils();
     string resultPath;
     if (UnzipAll) {
         Log.LogMessage("Unzipping all content");
         resultPath = zipUtils.UnzipAll(BuildPath, DestinationFolder);
     }
     else {
         Log.LogMessage("Unzipping database only");
         resultPath = zipUtils.UnzipDatabase(BuildPath, DestinationFolder);
     }
     UnzippedBuildPath = new TaskItem(resultPath);
     return true;
 }