Package org.renjin.gnur

Examples of org.renjin.gnur.GnurSourcesCompiler


    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 {
View Full Code Here

TOP

Related Classes of org.renjin.gnur.GnurSourcesCompiler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.