Examples of ScriptRunner


Examples of org.apache.maven.shared.scriptinterpreter.ScriptRunner

        }
        else
        {
            scriptClassPath = null;
        }
        scriptRunner = new ScriptRunner( getLog() );
        scriptRunner.setScriptEncoding( encoding );
        scriptRunner.setGlobalVariable( "localRepositoryPath", localRepositoryPath );
        if ( scriptVariables != null )
        {
            for ( Entry<String, String> entry : scriptVariables.entrySet() )
View Full Code Here

Examples of org.apache.maven.shared.scriptinterpreter.ScriptRunner

        }
        else
        {
            scriptClassPath = null;
        }
        scriptRunner = new ScriptRunner( getLog() );
        scriptRunner.setScriptEncoding( encoding );
        scriptRunner.setGlobalVariable( "localRepositoryPath", localRepositoryPath );
        scriptRunner.setClassPath( scriptClassPath );

        Collection<String> collectedProjects = new LinkedHashSet<String>();
View Full Code Here

Examples of org.apache.tools.ant.util.ScriptRunner

     * Do the work.
     *
     * @exception BuildException if something goes wrong with the build
     */
    public void execute() throws BuildException {
        ScriptRunner runner = new ScriptRunner();
        if (language != null) {
            runner.setLanguage(language);
        }
        if (src != null) {
            runner.setSrc(src);
        }
        if (text != null) {
            runner.addText(text);
        }

        runner.addBeans(getProject().getProperties());
        runner.addBeans(getProject().getUserProperties());
        runner.addBeans(getProject().getTargets());
        runner.addBeans(getProject().getReferences());

        runner.addBean("project", getProject());
        runner.addBean("self", this);

        runner.executeScript("ANT");
    }
View Full Code Here

Examples of org.contikios.cooja.plugins.ScriptRunner

       * We will manually start a test editor from here. */
      if (!hasEditor) {
        File scriptFile = new File(config.substring(0, config.length()-4) + ".js");
        if (scriptFile.exists()) {
          logger.info("Detected old simulation test, starting test editor manually from: " + scriptFile);
          ScriptRunner plugin = (ScriptRunner) gui.tryStartPlugin(ScriptRunner.class, gui, sim, null);
          if (plugin == null) {
            System.exit(1);
          }
          plugin.updateScript(scriptFile);
          try {
            plugin.setScriptActive(true);
          } catch (Exception e) {
            logger.fatal("Error: " + e.getMessage(), e);
            System.exit(1);
          }
        } else {
View Full Code Here

Examples of org.danann.cernunnos.runtime.ScriptRunner

    if (spring_context.containsBean("groupsTreeRefreshIntervalSeconds")) {
        groupsTreeRefreshIntervalSeconds = (Long) spring_context.getBean("groupsTreeRefreshIntervalSeconds");
    }

    // Cernunnos tech...
    runner = new ScriptRunner();
        initTask = runner.compileTask(getClass().getResource("init.crn").toExternalForm());

    }
View Full Code Here

Examples of org.jwildfire.create.tina.script.ScriptRunner

    return ScriptRunner.compile(data.scriptTextArea.getText());
  }

  @Override
  public void runScript() throws Exception {
    ScriptRunner script = compileScript();
    saveUndoPoint();
    script.run(this);
  }
View Full Code Here

Examples of org.jwildfire.create.tina.script.ScriptRunner

      }
      else {
        script = Tools.readUTF8Textfile(filename);
      }

      ScriptRunner scriptRunner = ScriptRunner.compile(script);
      saveUndoPoint();
      scriptRunner.run(this);
    }
    catch (Throwable ex) {
      errorHandler.handleError(ex);
    }
  }
View Full Code Here

Examples of se.sics.cooja.plugins.ScriptRunner

          desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
          GUI gui = new GUI(desktop);

          if (scriptFile != null && configFile != null) {
            /* Load and start script plugin (no-GUI version) */
            ScriptRunner scriptPlugin =
              (ScriptRunner) gui.startPlugin(ScriptRunner.class, gui, null, null);

            /* Activate test */
            scriptPlugin.activateTest(configFile, scriptFile, logFile);
          }
        }
      });

    } else if (args.length > 0 && args[0].startsWith("-applet")) {
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.