コード例 #1
0
        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());
        }
コード例 #2
0
 protected override string GetWorkingDirectory()
 {
     return(WorkingDirectory.GetMetadata("FullPath"));
 }