Ejemplo n.º 1
0
 void FlatRun(CookTarget target)
 {
     if (target is CookGroupTarget)
     {
         foreach (CookTarget tgt in ((CookGroupTarget)target).Children)
         {
             FlatRun(tgt);
         }
     }
     else
     {
         Run(target);
     }
 }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
 public abstract void Run(CookTarget item);
Ejemplo n.º 4
0
 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();
 }
Ejemplo n.º 5
0
 public override void Run(CookTarget item)
 {
     Run(item.GetPath());
 }