}
public WorkResult execute(WindowsResourceCompileSpec spec) {
boolean didWork = false;
boolean windowsPathLimitation = OperatingSystem.current().isWindows();
spec = specTransformer.transform(spec);
<BUG>CommandLineTool commandLineAssembler = commandLineTool.inWorkDirectory(spec.getObjectFileDir());</BUG>
for (File sourceFile : spec.getSourceFiles()) {
RcCompilerArgsTransformer argsTransformer = new RcCompilerArgsTransformer(sourceFile, windowsPathLimitation);
CommandLineToolInvocation invocation = new CommandLineToolInvocation();
<BUG>invocation.args = argsTransformer.transform(spec);
WorkResult result = commandLineAssembler.execute(invocation);
</BUG>
didWork |= result.getDidWork();

}
public WorkResult execute(WindowsResourceCompileSpec spec) {
boolean didWork = false;
boolean windowsPathLimitation = OperatingSystem.current().isWindows();
spec = specTransformer.transform(spec);
for (File sourceFile : spec.getSourceFiles()) {
RcCompilerArgsTransformer argsTransformer = new RcCompilerArgsTransformer(sourceFile, windowsPathLimitation);
CommandLineToolInvocation invocation = new CommandLineToolInvocation();
invocation.args = argsTransformer.transform(spec);
invocation.workDirectory = spec.getObjectFileDir();
WorkResult result = commandLineTool.execute(invocation);
didWork |= result.getDidWork();
