Examples of Script


Examples of com.google.gwt.dev.cfg.Script

      buf.insert(startPos, text);
      startPos += text.length();
    }

    for (Iterator iter = scripts.iterator(); iter.hasNext();) {
      Script script = (Script) iter.next();
      String text = scriptInjector(script.getSrc());
      buf.insert(startPos, text);
      startPos += text.length();
    }

    // Add property providers
View Full Code Here

Examples of com.groupon.odo.proxylib.models.Script

        return _instance;
    }

    private Script scriptFromSQLResult(ResultSet result) throws Exception {
        Script script = new Script();

        script.setId(result.getInt("id"));
        script.setName(result.getString("name"));
        script.setScript(result.getString("script"));

        return script;
    }
View Full Code Here

Examples of com.keybox.manage.model.Script

        }

        if (script == null
                || script.getScript() == null
                || script.getScript().trim().equals("")
                || (new Script()).getScript().trim().equals(script.getScript().trim())
                ) {
            addFieldError("script.script", "Required");
        }

        if (!this.getFieldErrors().isEmpty()) {
View Full Code Here

Examples of com.scratchdisk.script.Script

     * @throws 
     * @throws IOException
     */
    public boolean evaluate(File file) {
      try {
        Script script = compileScript(file);
        script.execute(createScope());
        return true;
      } catch (ScriptException e) {
        System.err.println(e.getFullMessage());
        e.printStackTrace();
      } catch (IOException e) {
View Full Code Here

Examples of com.scriptographer.sg.Script

  public static Script getCurrentScript() {
    // There can be 'holes' in the script stack, so find the first non-null
    // entry and return it.
    for (int i = scriptStack.size() - 1; i >= 0; i--) {
      Script last = scriptStack.get(i);
      if (last != null)
        return last;
    }
    return null;
  }
View Full Code Here

Examples of com.sogou.qadev.service.cynthia.bean.Script

  protected Object execute_i(Interpreter bsh)
  {
    String content = "";
    try
    {
      Script script = (Script) bsh.get("script");
      if (script == null)
        return null;

      content = script.getScript();
      if (content == null)
        return null;
      return bsh.eval(content);
    }
    catch (EvalError e)
View Full Code Here

Examples of com.volantis.mcs.protocols.Script

        assertEquals("Buffer should be unchanged",
                     "",
                     DOMUtilities.toString(
                             buffer.getRoot(), protocol.getCharacterEncoder()));

        Script script = DOMScript.createScript(
                new LiteralScriptAssetReference("task"));
        protocol.addOnEventElement(buffer, attributes, "testEvent", script);
        String expected = transformMarkup(
                "<onevent type=\"testEvent\">task</onevent>",
                protocol);
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.drivers.web.Script

        final String ref = "ref";
        contextMock.fuzzy.setProperty(Script.class,
                mockFactory.expectsAny(), Boolean.FALSE).does(new MethodAction() {
                    public Object perform(MethodActionEvent event)
                            throws Throwable {
                        Script script = (Script) event.getArgument("value",
                                Object.class);

                        assertEquals(ref, script.getRef());

                        return null;
                    }
                });
View Full Code Here

Examples of de.innovationgate.ext.org.mozilla.javascript.Script

        }
    }
   
    protected Script getCompiledScript(String code, RhinoContext cx) {
        String codeCacheKey = String.valueOf(code.hashCode());
        Script script = null;
        try {
            script = (Script) _cachedScripts.readEntry(codeCacheKey);
        }
        catch (CacheException e) {
            Logger.getLogger("wga.tmlscript.").error("Unable to load cached TMLScript code", e);
View Full Code Here

Examples of de.saumya.mojo.ruby.script.Script

        if (DATABASES.containsKey(database)) {
            database = DATABASES.get(database);
        }

        // run the "rails new"-script
        final Script script = installer.factory.newScript(installer.config.binScriptFile("rails"))
                .addArg("_" + railsVersion + "_")
                .addArg("new");
        if (appPath != null) {
            script.addArg(appPath.getAbsolutePath());
        }
        for (final String arg : args) {
            script.addArg(arg);
        }
        if (database != null) {
            script.addArg("-d", database);
        }
        if (isOffline( repositorySystemSession )) {
            this.logger.info("system is offline: using jruby rails templates from jar file - might be outdated");
        }
        if (template != null || (gwt != null && gwt.packageName != null)){
            String tmp = templateFrom(orm, isOffline( repositorySystemSession ), railsVersion);
            if(tmp != null ){
                System.setProperty("maven.rails.basetemplate", tmp);
            }
            if (template != null){
                System.setProperty("maven.rails.extratemplate", template);
            }
            if (gwt != null && gwt.packageName != null){
                System.setProperty("maven.rails.gwt", gwt.packageName);
            }
            script.addArg("-m", templateFromResource("templates"));
        }
        else {
            script.addArg("-m", templateFrom(orm, isOffline( repositorySystemSession ), railsVersion));
        }

        // skip bundler
        script.addArg("--skip-bundle");

        script.execute();

        if (appPath != null) {
            installer.factory.newScriptFromResource("maven/tools/pom_generator.rb")
                .addArg("rails")
                .addArg("Gemfile")
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.