public void assemble() {
SimpleStaleClassCleaner cleaner = new SimpleStaleClassCleaner(getOutputs());
cleaner.setDestinationDir(getObjectFileDir());
cleaner.execute();
DefaultAssembleSpec spec = new DefaultAssembleSpec();
spec.setTempDir(getTemporaryDir());
spec.setObjectFileDir(getObjectFileDir());
spec.source(getSource());
spec.args(getAssemblerArgs());
WorkResult result = toolChain.select(targetPlatform).newCompiler(spec).execute(spec);
setDidWork(result.getDidWork());
}