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

Examples of org.apache.sling.scripting.scala.interpreter.ScalaSettings.classpath()


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


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

    @Override
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.