wro4j-extensions/src/main/java/ro/isdc/wro/extensions/processor/support/linter/AbstractLinter.java
private RhinoScriptBuilder initScriptBuilder() {
    try {
      if (builder == null) {
        builder = RhinoScriptBuilder.newChain().evaluateChain(DEFINE_WINDOW, "window").evaluateChain(
            getScriptAsStream(), "linter.js");
      }
      return builder;
    } catch (final IOException e) {
      throw new WroRuntimeException("Failed reading init script", e);
    }
  }
private RhinoScriptBuilder initScriptBuilder() {
    try {
      if (builder == null) {
        builder = RhinoScriptBuilder.newChain().evaluateChain(DEFINE_WINDOW, "window").evaluateChain(
            getScriptAsStream(), "linter.js");
      }
      return builder;
    } catch (final IOException e) {
      throw new WroRuntimeException("Failed reading init script", e);
    }
  }
private RhinoScriptBuilder initScriptBuilder ( ) { try { if ( builder == null ) { builder = RhinoScriptBuilder . newChain ( ) . evaluateChain ( DEFINE_WINDOW , "window" ) . evaluateChain ( getScriptAsStream ( ) , "linter.js" ) ; } return builder ; } catch ( final IOException e ) { throw new WroRuntimeException ( "Failed reading init script" , e ) ; } }
Initialize script builder for evaluation.
Initialize script builder for evaluation .