if(sourceDirectories == null || sourceDirectories.isEmpty()) {
sourceDirectories = Lists.newArrayList(sourceDir("c"), sourceDir("fortran"));
}
GnurSourcesCompiler compiler = new GnurSourcesCompiler();
for(File sourceDir : sourceDirectories) {
compiler.addSources(sourceDir);
}
workDirectory.mkdirs();
gimpleDirectory.mkdirs();
outputDirectory.mkdirs();
compiler.setVerbose(false);
compiler.setPackageName(groupId + "." + artifactId);
compiler.setClassName(artifactId);
compiler.addClassPaths(pluginDependencies());
compiler.setWorkDirectory(workDirectory);
compiler.setOutputDirectory(outputDirectory);
compiler.setJimpleDirectory(jimpleDirectory);
compiler.setGimpleDirectory(gimpleDirectory);
try {
compiler.compile();
} catch (Exception e) {
if(ignoreFailure) {
System.err.println("Compilation of GNU R sources failed");
e.printStackTrace(System.err);
} else {