protected override string GenerateCommandLineCommands() { var args = new CommandLineArgumentBuilder(); if (Recursive) { args.Add("-r"); } if (Symlinks) { args.Add("-y"); } args.AddQuoted(OutputFile.GetMetadata("FullPath")); var root = WorkingDirectory.GetMetadata("FullPath"); for (int i = 0; i < Sources.Length; i++) { var relative = PathUtils.AbsoluteToRelative(root, Sources[i].GetMetadata("FullPath")); args.AddQuoted(relative); } return(args.ToString()); }
protected override string GetWorkingDirectory() { return(WorkingDirectory.GetMetadata("FullPath")); }