Examples of ScriptHandler


Examples of org.apache.flex.forks.batik.script.ScriptHandler

                    String sh;

                    sh = man.getMainAttributes().getValue("Script-Handler");
                    if (sh != null) {
                        // Run the script handler.
                        ScriptHandler h;
                        h = (ScriptHandler)cll.loadClass(sh).newInstance();

                        if (window == null) {
                            window = createWindow();
                        }

                        h.run(document, window);
                    }

                    sh = man.getMainAttributes().getValue("SVG-Handler-Class");
                    if (sh != null) {
                        // Run the initializer
View Full Code Here

Examples of org.apache.flex.forks.batik.script.ScriptHandler

                    String sh;

                    sh = man.getMainAttributes().getValue("Script-Handler");
                    if (sh != null) {
                        // Run the script handler.
                        ScriptHandler h;
                        h = (ScriptHandler)cll.loadClass(sh).newInstance();

                        if (window == null) {
                            window = createWindow();
                        }

                        h.run(document, window);
                    }

                    sh = man.getMainAttributes().getValue("SVG-Handler-Class");
                    if (sh != null) {
                        // Run the initializer
View Full Code Here

Examples of org.gradle.api.initialization.dsl.ScriptHandler

    private void applyScript(Object script) {
        URI scriptUri = resolver.resolveUri(script);
        UriScriptSource scriptSource = new UriScriptSource("script", scriptUri);
        ClassLoaderScope classLoaderScopeChild = classLoaderScope.createChild();
        ScriptHandler scriptHandler = scriptHandlerFactory.create(scriptSource, classLoaderScopeChild);
        ScriptPlugin configurer = configurerFactory.create(scriptSource, scriptHandler, classLoaderScopeChild, classLoaderScope, "buildscript", DefaultScript.class, false);
        for (Object target : targets) {
            configurer.apply(target);
        }
    }
View Full Code Here

Examples of org.gradle.api.initialization.dsl.ScriptHandler

    }

    private void applySettingsScript(SettingsLocation settingsLocation, final SettingsInternal settings) {
        ScriptSource settingsScriptSource = settingsLocation.getSettingsScriptSource();
        ClassLoaderScope settingsClassLoaderScope = settings.getClassLoaderScope();
        ScriptHandler scriptHandler = scriptHandlerFactory.create(settingsScriptSource, settingsClassLoaderScope);
        ScriptPlugin configurer = configurerFactory.create(settingsScriptSource, scriptHandler, settingsClassLoaderScope, settings.getRootClassLoaderScope(), "buildscript", SettingsScript.class, false);
        configurer.apply(settings);
    }
View Full Code Here

Examples of org.gradle.api.initialization.dsl.ScriptHandler

    }

    public void process(final ScriptSource initScript, GradleInternal gradle) {
        ClassLoaderScope baseScope = gradle.getClassLoaderScope();
        ClassLoaderScope scriptScope = baseScope.createChild();
        ScriptHandler scriptHandler = scriptHandlerFactory.create(initScript, scriptScope);
        ScriptPlugin configurer = configurerFactory.create(initScript, scriptHandler, scriptScope, baseScope, "initscript", InitScript.class, false);
        configurer.apply(gradle);
    }
View Full Code Here

Examples of org.locationtech.udig.omsbox.core.ScriptHandler

     * Runs the module currently selected in the gui.
     *
     * @throws Exception
     */
    public void runSelectedModule() throws Exception {
        ScriptHandler handler = new ScriptHandler();
        String script = handler.genereateScript(currentSelectedModuleGui);
        if (script == null) {
            return;
        }

        String scriptID = currentSelectedModuleGui.getModuleDescription().getName() + " "
                + new DateTime().toString(OmsBoxConstants.dateTimeFormatterYYYYMMDDHHMMSS);
        handler.runModule(scriptID, script);
    }
View Full Code Here

Examples of org.locationtech.udig.omsbox.core.ScriptHandler

     *
     * @return the generated script.
     * @throws Exception
     */
    public String generateScriptForSelectedModule() throws Exception {
        ScriptHandler handler = new ScriptHandler();
        if (currentSelectedModuleGui == null) {
            return null;
        }
        String script = handler.genereateScript(currentSelectedModuleGui);
        return script;
    }
View Full Code Here

Examples of org.ngrinder.script.handler.ScriptHandler

   */
  public void doTest(final PerfTest perfTest) {
    SingleConsole singleConsole = null;
    try {
      singleConsole = startConsole(perfTest);
      ScriptHandler prepareDistribution = perfTestService.prepareDistribution(perfTest);
      GrinderProperties grinderProperties = perfTestService.getGrinderProperties(perfTest, prepareDistribution);
      startAgentsOn(perfTest, grinderProperties, checkCancellation(singleConsole));
      distributeFileOn(perfTest, checkCancellation(singleConsole));

      singleConsole.setReportPath(perfTestService.getReportFileDirectory(perfTest));
View Full Code Here

Examples of org.ngrinder.script.handler.ScriptHandler

    FileEntry scriptEntry = checkNotNull(
        fileEntryService.getOne(user,
            checkNotEmpty(perfTest.getScriptName(), "perfTest should have script name"),
            getSafe(perfTest.getScriptRevision())), "script should exist");
    // Get all files in the script path
    ScriptHandler handler = scriptHandlerFactory.getHandler(scriptEntry);

    ProcessingResultPrintStream processingResult = new ProcessingResultPrintStream(new ByteArrayOutputStream());
    handler.prepareDist(perfTest.getId(), user, scriptEntry, perfTestDistDirectory, config.getControllerProperties(),
        processingResult);
    LOGGER.info("File write is completed in {}", perfTestDistDirectory);
    if (!processingResult.isSuccess()) {
      File logDir = new File(getLogFileDirectory(perfTest), "distribution_log.txt");
      try {
View Full Code Here

Examples of org.ngrinder.script.handler.ScriptHandler

    if (StringUtils.isEmpty(testUrl)) {
      testUrl = StringUtils.defaultIfBlank(testUrl, "http://please_modify_this.com");
    } else {
      name = UrlUtils.getHost(testUrl);
    }
    ScriptHandler scriptHandler = fileEntryService.getScriptHandler(scriptType);
    FileEntry entry = new FileEntry();
    entry.setPath(fileName);
    if (scriptHandler instanceof ProjectHandler) {
      if (!fileEntryService.hasFileEntry(user, PathUtils.join(path, fileName))) {
        fileEntryService.prepareNewEntry(user, path, fileName, name, testUrl, scriptHandler,
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.