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();) {
IResource resource = it.next();
if (!resource.isDirectory()) {
if (!resource.getName().endsWith(".java")) {
File destFile = new File(outputDirectory, resource