void FlatRun(CookTarget target) { if (target is CookGroupTarget) { foreach (CookTarget tgt in ((CookGroupTarget)target).Children) { FlatRun(tgt); } } else { Run(target); } }
public override void Run(CookTarget item) { if (!System.IO.Directory.Exists(item.GetPath())) { return; } string appPath = System.IO.Path.GetDirectoryName(Application.ExecutablePath); appPath = System.IO.Path.Combine(appPath, "bin"); appPath = System.IO.Path.Combine(appPath, "PackageTool.exe"); Interop.ProcessWrapper wrapper = new Interop.ProcessWrapper(appPath); wrapper.ProcessStart.Arguments = String.Format("{0} {1}", item.GetPath(), PackageName); if (Compress) { wrapper.ProcessStart.Arguments += " -c"; } wrapper.Run(); }
public abstract void Run(CookTarget item);
public override void Run(CookTarget item) { Interop.ProcessWrapper wrapper = new Interop.ProcessWrapper("cmd.exe"); wrapper.ProcessStart.Arguments = String.Format("/C {0} {1}", File.ToSpaceQuoted(), item.GetPath().ToSpaceQuoted()); wrapper.Run(); }
public override void Run(CookTarget item) { Run(item.GetPath()); }