org.olengski.optimize
public class Optimizer extends Object
| Constructor and Description |
|---|
Optimizer() |
| Modifier and Type | Method and Description |
|---|---|
void |
optimize(File buildProfile,
org.mozilla.javascript.ErrorReporter reporter,
Runner runner) |
void |
optimize(File buildProfile,
org.mozilla.javascript.ErrorReporter reporter,
Runner runner,
String[] params)
Optimize using the built-in version of r.js.
|
void |
optimize(File buildProfile,
File optimizerFile,
org.mozilla.javascript.ErrorReporter reporter,
Runner runner) |
void |
optimize(File buildProfile,
File optimizerFile,
org.mozilla.javascript.ErrorReporter reporter,
Runner runner,
String[] params)
Optimize using an external version of r.js.
|
public void optimize(File buildProfile, org.mozilla.javascript.ErrorReporter reporter, Runner runner, String[] params) throws IOException, OptimizationException
buildProfile - file containing optimizer build profile configurationreporter - error reporterrunner - Runner which will execute the optimize scriptIOException - if there is a problem reading/writing optimization filesOptimizationException - if the optimizer script returns an error statuspublic void optimize(File buildProfile, org.mozilla.javascript.ErrorReporter reporter, Runner runner) throws IOException, OptimizationException
IOExceptionOptimizationExceptionpublic void optimize(File buildProfile, File optimizerFile, org.mozilla.javascript.ErrorReporter reporter, Runner runner, String[] params) throws IOException, OptimizationException
buildProfile - file containing optimizer build profile configurationoptimizerFile - file containing optimizer libraryreporter - error reporterrunner - Runner which will execute the optimize scriptIOException - if there is a problem reading/writing optimization filesOptimizationException - if the optimizer script returns an error statuspublic void optimize(File buildProfile, File optimizerFile, org.mozilla.javascript.ErrorReporter reporter, Runner runner) throws IOException, OptimizationException
IOExceptionOptimizationExceptionCopyright © 2015. All rights reserved.