public string BuildPCUTIL() { string cwpFilePath = ""; // Now we start the build process Console.WriteLine("Build PCUTIL"); cwUtil.RunScriptOnDocument(this.buildDoc, "On Opening", "PCUTIL", "init", this.Version); while (ioUtil.IsCaseWareProcessRunning()) { // Wait for build to finish } // Need to find the cwp file after build cwpFilePath = ioUtil.FindTheFileByExtension(Path.Combine(buildFolder, "PCUTIL"), ".cwp"); Console.WriteLine(); return(cwpFilePath); }
public string PatchAuditCWI(string cwpPath) { string cwpFilePath = ""; if (File.Exists(cwpPath)) { // Now we start the build process Console.WriteLine("Patch Audit CWI"); cwUtil.InstallTemplate(cwpPath); while (ioUtil.IsCaseWareProcessRunning()) { // Wait for build to finish } // After the patch finish, will use the new script from Make Build document to repack it cwUtil.RunRepackger(this.buildDocPath, "TemplatePackager", Path.Combine(cwUtil.DocumentLibFolder, AuditCWIFolder, "AuditCWI.ac"), "Packager"); cwpFilePath = ioUtil.FindTheFileByExtension(cwUtil.DocumentLibFolder, ".cwp"); Console.WriteLine(); } return(cwpFilePath); }