<BUG>task.setObjectFileDir(project.file(project.getBuildDir() + "/objs/" + binary.getNamingScheme().getOutputDirectoryBase() + "/" + sourceSet.getProjectScopedName()));Tool assemblerTool = binary.getToolByName("assembler");</BUG><CONTEXT>task.setDescription(String.format("Assembles the %s of %s", sourceSet, binary));task.setToolChain(binary.getToolChain());task.setTargetPlatform(binary.getTargetPlatform());task.source(sourceSet.getSource());final Project project = task.getProject();<extra_id_0>task.setAssemblerArgs(assemblerTool.getArgs());binary.binaryInputs(task.getOutputs().getFiles().getAsFileTree().matching(new PatternSet().include("**/*.obj", "**/*.o")));}</CONTEXT>
task.setObjectFileDir(new File(binary.getNamingScheme().withOutputType("objs").getOutputDirectory(project.getBuildDir()), sourceSet.getProjectScopedName()));Tool assemblerTool = binary.getToolByName("assembler");