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