Examples of Script


Examples of abbot.script.Script

        hierarchy = createHierarchy();

        finder = new BasicFinder(hierarchy);
        // FIXME kind of a hack, but Script is the only implementation of
        // Resolver we've got at the moment.
        resolver = new Script(hierarchy);
    }
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.fxgraph.fXGraph.Script

      } else if ("fx:script".equals(qName)) {
        for (int i = 0; i < attributes.getLength(); i++) {
          String propertyQName = attributes.getQName(i);
          String value = attributes.getValue(i);
          if ("source".equals(propertyQName)) {
            Script s = createScript(value, null);
            model.getComponentDef().getScripts().add(s);
          }
        }
      } else if ("fx:reference".equals(qName)) {
        for (int i = 0; i < attributes.getLength(); i++) {
View Full Code Here

Examples of bear.main.Script

                            try {
                                if (SCRIPT_PATTERN.matcher(command).matches()) {
                                    GroovyClassLoader gcl = new GroovyClassLoader();
                                    Class clazz = gcl.parseClass(command);
                                    Object aScript = clazz.newInstance();
                                    Script script = (Script) aScript;
                                    script.setParent(_parent);
                                    $.wire(script);
                                    script.task = $this;
                                    script.configure();
                                    script.global = global;
                                    return script.run();
                                } else {
                                    GroovyShell shell = getShell(runner);
                                    shell.evaluate(command);
                                }
                            } catch (Throwable e) {
View Full Code Here

Examples of br.gov.serpro.ouvidoria.model.Script

            ConsultarScriptCtrl consultarScriptCtrl = new ConsultarScriptCtrl(
                    getDaoFactory());

            Long id = new Long(request.getParameter("id"));

            Script script = consultarScriptCtrl.get(id);

            if (script == null) {
                errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(
                        "error.script.notFound"));
            }
View Full Code Here

Examples of ch.entwine.weblounge.common.content.page.Script

   * Returns <code>true</code> if <code>o</code> is a <code>ScriptInclude</code>
   * as well pointing to the same script.
   */
  public boolean equals(Object o) {
    if (o instanceof Script) {
      Script s = (Script) o;
      return href.equals(s.getHref());
    }
    return false;
  }
View Full Code Here

Examples of com.caucho.es.Script

     
        mergePath.addClassPath(parentLoader);
        scriptPath = mergePath;
      }
     
      Script script = loadScript(className);

      if (! script.isModified()) {
        script.setScriptPath(getScriptPath());
        script.setClassDir(workPath);
        return script;
      }
    } catch (Throwable e) {
    }
 
View Full Code Here

Examples of com.cloud.utils.script.Script

        String[] results = new String[cmd.getRules().length];
        int i = 0;
        boolean endResult = true;
        for (StaticNatRuleTO rule : cmd.getRules()) {
            String result = null;
            final Script command = new Script(_firewallPath, _timeout, s_logger);
            command.add(routerIp);
            command.add(rule.revoked() ? "-D" : "-A");
           
            //1:1 NAT needs instanceip;publicip;domrip;op
            command.add(" -l ", rule.getSrcIp());
            command.add(" -r ", rule.getDstIp());
           
            if (rule.getProtocol() != null) {
                command.add(" -P ", rule.getProtocol().toLowerCase());
            }
           
            command.add(" -d ", rule.getStringSrcPortRange());
            command.add(" -G ") ;
           
            result = command.execute();
            if (result == null) {
                results[i++] = null;
            } else {
                results[i++] = "Failed";
                endResult = false;
View Full Code Here

Examples of com.cueup.hegemon.Script

    if (scriptData == null) {
      this.testScript = null;
    } else {
      try {
        String source = loadPath.load(scriptData.filename() + ".js");
        this.testScript = new Script(scriptData.filename(), source, loadPath, "hegemon/unittest");
      } catch (LoadError e) {
        throw new InitializationError(e);
      }
    }
  }
View Full Code Here

Examples of com.dodo.blog.ui.component.meta.Script

    {
        List<Script> scripts = new ArrayList<Script>();

        if ( RequestCycle.get().getWebApplication().isDevelopment() )
        {
            scripts.add( new Script( "/gc_lib/goog/base.js" ) );
            scripts.add( new Script( "/scripts/page.js" ) );
        }

        return scripts;
    }
View Full Code Here

Examples of com.google.bitcoin.script.Script

    }

    public RuleList getBlocksToTest(boolean addSigExpensiveBlocks, boolean runLargeReorgs, File blockStorageFile) throws ScriptException, ProtocolException, IOException {
        final FileOutputStream outStream = blockStorageFile != null ? new FileOutputStream(blockStorageFile) : null;

        final Script OP_TRUE_SCRIPT = new ScriptBuilder().op(OP_TRUE).build();
        final Script OP_NOP_SCRIPT = new ScriptBuilder().op(OP_NOP).build();

        // TODO: Rename this variable.
        List<Rule> blocks = new LinkedList<Rule>() {
            @Override
            public boolean add(Rule element) {
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.