com.github.bringking.maven.less
Class MavenLessCompiler

java.lang.Object
  extended by com.github.bringking.maven.less.MavenLessCompiler

public class MavenLessCompiler
extends Object

Optimizes js files.


Constructor Summary
MavenLessCompiler(Boolean isNode)
           
 
Method Summary
 void compileLess(File inputFile, org.mozilla.javascript.ErrorReporter reporter, Runner runner)
          Optimize using an external version of r.js.
 void compileLess(File inputFile, File outputFile, org.mozilla.javascript.ErrorReporter reporter, Runner runner, Boolean minify)
          Optimize using an external version of r.js.
 void unZipIt(InputStream stream, File dest)
          Unzip it
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenLessCompiler

public MavenLessCompiler(Boolean isNode)
Method Detail

compileLess

public void compileLess(File inputFile,
                        File outputFile,
                        org.mozilla.javascript.ErrorReporter reporter,
                        Runner runner,
                        Boolean minify)
                 throws IOException,
                        CompilationException
Optimize using an external version of r.js.

Parameters:
inputFile - input less file
outputFile - output css file
reporter - error reporter
runner - Runner which will execute the less compiler
minify - should output be minified
Throws:
IOException - if there is a problem reading/writing less files
CompilationException - if the less compiler returns an error status

compileLess

public void compileLess(File inputFile,
                        org.mozilla.javascript.ErrorReporter reporter,
                        Runner runner)
                 throws IOException,
                        CompilationException
Optimize using an external version of r.js.

Parameters:
inputFile - input less file
reporter - error reporter
runner - Runner which will execute the less compiler
Throws:
IOException - if there is a problem reading/writing less files
CompilationException - if the less compiler returns an error status

unZipIt

public void unZipIt(InputStream stream,
                    File dest)
Unzip it

Parameters:
stream - input zip file
dest - ztp file output folder


Copyright © 2014. All Rights Reserved.