WorkResult result = compiler.execute(spec);
setDidWork(result.getDidWork());
}
private DefaultJavaCompileSpec createSpec() {
DefaultJavaCompileSpec spec = new DefaultJavaCompileSpec();
spec.setSource(getSource());
spec.setDestinationDir(getDestinationDir());
spec.setWorkingDir(getProject().getProjectDir());
spec.setTempDir(getTemporaryDir());
spec.setClasspath(getClasspath());
spec.setDependencyCacheDir(getDependencyCacheDir());
spec.setTargetCompatibility(getTargetCompatibility());
spec.setSourceCompatibility(getSourceCompatibility());
spec.setCompileOptions(compileOptions);
return spec;
}