Package org.apache.sling.scripting.scala.interpreter

Examples of org.apache.sling.scripting.scala.interpreter.ScalaSettings


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

TOP

Related Classes of org.apache.sling.scripting.scala.interpreter.ScalaSettings

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.