Search in sources :

Example 6 with Settings

use of scala.tools.nsc.Settings in project kylo by Teradata.

the class SparkScriptEngine method getSettings.

/**
 * Gets the settings for the interpreter.
 *
 * @return the interpreter settings
 */
@Nonnull
private Settings getSettings() {
    final Settings settings = new Settings();
    if (settings.classpath().isDefault()) {
        final String classPath = Joiner.on(':').join(((URLClassLoader) getClass().getClassLoader()).getURLs()) + ":" + System.getProperty("java.class.path");
        settings.classpath().value_$eq(classPath);
    }
    return settings;
}
Also used : Settings(scala.tools.nsc.Settings) Nonnull(javax.annotation.Nonnull)

Aggregations

Settings (scala.tools.nsc.Settings)6 File (java.io.File)3 URL (java.net.URL)3 BooleanSetting (scala.tools.nsc.settings.MutableSettings.BooleanSetting)3 PathSetting (scala.tools.nsc.settings.MutableSettings.PathSetting)3 PrintWriter (java.io.PrintWriter)2 Nonnull (javax.annotation.Nonnull)2 IMain (scala.tools.nsc.interpreter.IMain)2 MutableSettings (scala.tools.nsc.settings.MutableSettings)2 SparkInterpreterBuilder (com.thinkbiganalytics.spark.SparkInterpreterBuilder)1 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 URLClassLoader (java.net.URLClassLoader)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 PlanExecutor (org.apache.flink.api.common.PlanExecutor)1 FlinkILoop (org.apache.flink.api.scala.FlinkILoop)1 Configuration (org.apache.flink.configuration.Configuration)1 StreamExecutionEnvironment (org.apache.flink.streaming.api.environment.StreamExecutionEnvironment)1 SparkILoop (org.apache.spark.repl.SparkILoop)1 SparkDependencyContext (org.apache.zeppelin.spark.dep.SparkDependencyContext)1