Examples of RingoConfig


Examples of org.ringojs.engine.RingoConfig

                    StringUtils.split(extraPath, File.pathSeparator));
        }
        String[] systemModulePath = {"modules", "packages"};
        String[] userModulePath = userModules.toArray(new String[userModules.size()]);

        config = new RingoConfig(home, userModulePath, systemModulePath);
        boolean hasPolicy = System.getProperty("java.security.policy") != null;
        config.setPolicyEnabled(hasPolicy);
        config.setWrapFactory(hasPolicy ? new SecureWrapFactory() : new RingoWrapFactory());
        config.setMainScript(scriptName);
        config.setArguments(scriptArgs);
View Full Code Here

Examples of org.ringojs.engine.RingoConfig

                            + "reverting to file repository " + home);
                }
                // Use ',' as platform agnostic path separator
                String[] paths = StringUtils.split(modulePath, ",");
                String[] systemPaths = {"modules", "packages"};
                RingoConfig ringoConfig =
                        new RingoConfig(home, base, paths, systemPaths);
                ringoConfig.setDebug(debug);
                ringoConfig.setVerbose(verbose);
                ringoConfig.setParentProtoProperties(legacyMode);
                ringoConfig.setStrictVars(!legacyMode && !production);
                ringoConfig.setReloading(!production);
                ringoConfig.setOptLevel(optlevel);
                if (bootScripts != null) {
                    ringoConfig.setBootstrapScripts(Arrays.asList(
                            StringUtils.split(bootScripts, ",")));
                }
                engine = new RhinoEngine(ringoConfig, null);
            } catch (Exception x) {
                throw new ServletException(x);
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.