private void button_BatchBuild_Click(object sender, EventArgs e) { BatchCompileList batchList = new BatchCompileList(); foreach (ProjectLevel level in _ide.Project.Levels) { string prj2Path; if (level.SpecificFile == "$(LatestFile)") { prj2Path = Path.Combine(level.FolderPath, level.GetLatestPrj2File()); } else { prj2Path = Path.Combine(level.FolderPath, level.SpecificFile); } batchList.Files.Add(prj2Path); } string batchListFilePath = Path.Combine(Path.GetTempPath(), "tide_batch.xml"); BatchCompileList.SaveToXml(batchListFilePath, batchList); ProcessStartInfo startInfo = new ProcessStartInfo { FileName = Path.Combine(DefaultPaths.GetProgramDirectory(), "TombEditor.exe"), Arguments = "\"" + batchListFilePath + "\"" }; Process.Start(startInfo); }
// Only for debugging purposes... private void debugAction0ToolStripMenuItem_Click(object sender, EventArgs e) { var batchList = new BatchCompileList(); batchList.Location = "D:\\FMAP"; batchList.Files.Add("test1.prj2"); batchList.Files.Add("test2.prj2"); batchList.Files.Add("test3.prj2"); batchList.Files.Add("test4.prj2"); batchList.Files.Add("test5.prj2"); BatchCompileList.SaveToXml("BATCH.xml", batchList); }