Class ProcessJSFilesTask
java.lang.Object
com.github.blutorange.maven.plugin.closurecompiler.common.ProcessFilesTask
com.github.blutorange.maven.plugin.closurecompiler.common.ProcessJSFilesTask
- All Implemented Interfaces:
Callable<List<ProcessingResult>>
Task for merging and compressing JavaScript files.
-
Field Summary
Fields inherited from class com.github.blutorange.maven.plugin.closurecompiler.common.ProcessFilesTask
closureConfig, files, includesEmpty, mojoMeta, outputFilenameInterpolator, processConfig, sourceDir, targetDir
-
Constructor Summary
ConstructorDescriptionProcessJSFilesTask
(MojoMetadata mojoMeta, FileProcessConfig processConfig, FileSpecifier fileSpecifier, ClosureConfig closureConfig) Task constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected ProcessingResult
Minifies a JavaScript file.protected ProcessingResult
Methods inherited from class com.github.blutorange.maven.plugin.closurecompiler.common.ProcessFilesTask
call, copy, haveFilesChanged, logCompressionGains, merge, mkDir, removeMessages
-
Constructor Details
-
Method Details
-
minify
protected ProcessingResult minify(File mergedFile, File minifiedFile) throws IOException, org.apache.maven.plugin.MojoFailureException Minifies a JavaScript file. Create missing parent directories if needed.- Parameters:
mergedFile
- input file resulting from the merged stepminifiedFile
- output file resulting from the minify step- Throws:
IOException
- when the minify step failsorg.apache.maven.plugin.MojoFailureException
- When the file could not be minified, either due to an I/O error or due to a closure compiler failure.
-
minify
protected ProcessingResult minify(List<File> srcFiles, File minifiedFile) throws IOException, org.apache.maven.plugin.MojoFailureException - Throws:
IOException
org.apache.maven.plugin.MojoFailureException
-