Package de.matrixweb.smaller.javascript

Examples of de.matrixweb.smaller.javascript.JavaScriptExecutorFast


    return resource;
  }

  private void setupJavascriptExecutor() {
    if (this.executor == null) {
      this.executor = new JavaScriptExecutorFast("jshint-1.1.0", 9,
          JshintProcessor.class);
      this.executor.addScriptFile(getClass().getResource(
          "/jshint-1.1.0/jshint-1.1.0.js"));
      this.executor.addScriptFile(getClass().getResource(
          "/jshint-1.1.0/jshint-call.js"));
View Full Code Here


  }

  private Resource executeWithJs(final VFS vfs, final Resource resource,
      final Map<String, Object> options) throws IOException {
    if (this.executor == null) {
      this.executor = new JavaScriptExecutorFast("uglify-" + this.version, 9,
          getClass());
      this.executor.addScriptSource("module = {};", "rhino.js");
      this.executor.addScriptFile(getClass().getResource(
          "/uglify-" + this.version + "/uglify-js.js"));
      this.executor.addCallScript("uglify(%s, {});");
View Full Code Here

  /**
   *
   */
  public YcssminProcessor() {
    this.executor = new JavaScriptExecutorFast("ycssmin-913e1945c2", 9,
        getClass());
    this.executor.addScriptSource("var exports = {};", "rhino.js");
    this.executor.addScriptFile(getClass().getResource(
        "/ycssmin-913e1945c2/cssmin-913e1945c2.js"));
    this.executor.addCallScript("exports.cssmin(%s);");
View Full Code Here

  }

  private void configureWithJs() {
    if (this.executor == null) {
      LOGGER.info("Setup lessjs ({}) with v8/rhino", this.version);
      this.executor = new JavaScriptExecutorFast("less-" + this.version, 9,
          LessjsProcessor.class);
      this.executor
          .addGlobalFunction("resolve", new ResolveFunctor(this.proxy));
      this.executor.addScriptSource("win_loc_href_fix = '" + WIN_LOC_HREF_FIX
          + "';", "win_loc_href_fix");
View Full Code Here

TOP

Related Classes of de.matrixweb.smaller.javascript.JavaScriptExecutorFast

Copyright © 2018 www.massapicom. 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.