Example #1
0
 public ExecTask(FilePath program)
 {
     Program = program;
     Args = string.Empty;
 }
Example #2
0
 public static void CopyToFile(FilePath file, FilePath toFile, Overwrite overwrite = Overwrite.IfNewer, bool failOnError = true)
 {
     new CopyTask(file) { ToFile = toFile, Overwrite = overwrite, FailOnError = failOnError }.Execute();
 }
Example #3
0
 public static void Rename(FilePath file, FilePath toFile, Overwrite overwrite)
 {
     new MoveTask(file) { ToFile = toFile, Overwrite = overwrite }.Execute();
 }
Example #4
0
 public static void CopyToFile(FilePath file, FilePath toFile)
 {
     new CopyTask(file) { ToFile = toFile }.Execute();
 }
Example #5
0
 public static void Move(FilePath file, DirectoryPath toDir, Overwrite overwrite, bool failOnError = true)
 {
     new MoveTask(file) { ToDir = toDir, Overwrite = overwrite, FailOnError = failOnError }.Execute();
 }