Package cn.dreampie.lesscss.compiler

Examples of cn.dreampie.lesscss.compiler.LessCssCompiler


    this.restartInterval = restartInterval;
    this.lessCssCompiler = lessCssCompiler;
  }

  private void setLessCssCompiler(String in, String out, boolean compress, boolean watch) {
    lessCssCompiler = new LessCssCompiler();
    lessCssCompiler.setBuildContext(ThreadBuildContext.getContext());
    lessCssCompiler.setSourceDirectory(new File(PathKit.getWebRootPath() + in));
    lessCssCompiler.setOutputDirectory(new File(PathKit.getWebRootPath() + out));
//        lessCssCompiler.setForce(true);
    lessCssCompiler.setCompress(compress);
View Full Code Here


    lessCompiler = new LessCompiler(Arrays.asList("--relative-urls", "--strict-math=on"));
    css = lessCompiler.compile(new File(PathKit.getWebRootPath() + "/src/main/webapp/css/app/_layout.less"));
    System.out.println(css);

    LessCssCompiler lessCssCompiler = new LessCssCompiler();
    lessCssCompiler.setBuildContext(ThreadBuildContext.getContext());
    lessCssCompiler.setSourceDirectory(new File(PathKit.getWebRootPath() + "/css/"));
    lessCssCompiler.setOutputDirectory(new File(PathKit.getRootClassPath() + "/css/"));
    lessCssCompiler.setForce(true);
    lessCssCompiler.setCompress(true);
    lessCssCompiler.setWatch(true);
    lessCssCompiler.execute();
  }
View Full Code Here

TOP

Related Classes of cn.dreampie.lesscss.compiler.LessCssCompiler

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.