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;
}
Aggregations