IChangeRPathPolicy.Change( ChangeRPathModule sender, Bam.Core.ExecutionContext context, CollatedFile source, string newRPath) { var commandLine = new Bam.Core.StringArray(); commandLine.Add("-r"); commandLine.Add(newRPath); commandLine.Add(source.GeneratedPaths[CollatedObject.Key].Parse()); CommandLineProcessor.Processor.Execute(context, sender.Tool as Bam.Core.ICommandLineTool, commandLine); }
IChangeRPathPolicy.Change( ChangeRPathModule sender, Bam.Core.ExecutionContext context, CollatedFile source, string newRPath) { // add another shell command to the rule for copying the file var meta = source.MetaData as MakeFileBuilder.MakeFileMeta; var rule = meta.Rules[0]; var commandLine = new Bam.Core.StringArray(); commandLine.Add("-r"); rule.AddShellCommand(System.String.Format(@"{0} {1} {2} $@ {3}", CommandLineProcessor.Processor.StringifyTool(sender.Tool as Bam.Core.ICommandLineTool), commandLine.ToString(' '), newRPath, CommandLineProcessor.Processor.TerminatingArgs(sender.Tool as Bam.Core.ICommandLineTool))); }