Package com.asual.lesscss.compiler

Examples of com.asual.lesscss.compiler.RhinoCompiler


      URL cssmin = classLoader.getResource("META-INF/cssmin.js");
      URL sourceMap = classLoader.getResource("META-INF/source-map.js");
        double version = Double.parseDouble(Runtime.class.getPackage()
            .getImplementationVersion().replaceFirst("^(\\d\\.\\d).*", "$1"));
      if (version < 1.8) {
        compiler = new RhinoCompiler(options, loader, less, env, engine, cssmin, sourceMap);       
      } else {
        compiler = new NashornCompiler(options, loader, less, env, engine, cssmin, sourceMap);
      }
    } catch (Exception e) {
      logger.error("LESS Engine intialization failed.", e);
View Full Code Here


      URL less = options.getLess();
      URL env = classLoader.getResource("META-INF/env.js");
      URL engine = classLoader.getResource("META-INF/engine.js");
      URL cssmin = classLoader.getResource("META-INF/cssmin.js");
      URL sourceMap = classLoader.getResource("META-INF/source-map.js");
      compiler = new RhinoCompiler(options, loader, less, env, engine, cssmin, sourceMap);
      Context.exit();
    } catch (Exception e) {
      logger.error("LESS Engine intialization failed.", e);
    }
  }
View Full Code Here

TOP

Related Classes of com.asual.lesscss.compiler.RhinoCompiler

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.