public Assembler(CommandLineTool commandLineTool) {
this.commandLineTool = commandLineTool;
}
public WorkResult execute(AssembleSpec spec) {
boolean didWork = false;
<BUG>CommandLineTool commandLineAssembler = commandLineTool.inWorkDirectory(spec.getObjectFileDir());</BUG>
for (File sourceFile : spec.getSourceFiles()) {
CommandLineToolInvocation invocation = new CommandLineToolInvocation();
<BUG>invocation.args = new AssemblerArgsTransformer(sourceFile).transform(spec);
WorkResult result = commandLineAssembler.execute(invocation);
</BUG>
didWork = didWork || result.getDidWork();

public Assembler(CommandLineTool commandLineTool) {
this.commandLineTool = commandLineTool;
}
public WorkResult execute(AssembleSpec spec) {
boolean didWork = false;
for (File sourceFile : spec.getSourceFiles()) {
CommandLineToolInvocation invocation = new CommandLineToolInvocation();
invocation.args = new AssemblerArgsTransformer(sourceFile).transform(spec);
invocation.workDirectory = spec.getObjectFileDir();
WorkResult result = commandLineTool.execute(invocation);
didWork = didWork || result.getDidWork();
