}
compiler.setVerbose(true);
FileUtils.mkdirs(outputDirectory);
compiler.setOutputLocation(outputDirectory);
CompilationResult result = compiler.doCompilation();
if (!result.isSuccessful()) {
throw new RuntimeException(result.toString());
} else {
// Now copy the resources from the source paths.
for (File sourcePath : sourcePaths) {
for (Iterator<IResource> it = new DirectoryParser(sourcePath)
.iterator(); it.hasNext();) {