private SlingRepository repository;
private Session session;
@Override
public Settings getSettings() throws ScriptException {
ScalaSettings settings = new ScalaSettings();
settings.parse(this.settings);
Bundle[] bundles = context.getBundleContext().getBundles();
URL[] bootUrls = getBootUrls(bundles[0]);
StringBuilder bootPath = new StringBuilder(settings.classpath().v());
for (URL url : bootUrls) {
// bootUrls are sometimes null, at least when running integration
// tests with cargo-maven2-plugin
if(url != null) {
bootPath.append(PATH_SEPARATOR).append(url.getPath());
}
}
settings.classpath().v_$eq(bootPath.toString());
settings.outputDirs().setSingleOutput(getOutDir());
return settings;
}