Class ProcessFilesTask
java.lang.Object
com.sevenprinciplesmobility.maven.minify.plugin.ProcessFilesTask
- Direct Known Subclasses:
ProcessCSSFilesTask
,ProcessJSFilesTask
Abstract class for merging and compressing a files list.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProcessFilesTask
(org.apache.maven.plugin.logging.Log log, boolean verbose, Integer bufferSize, Charset charset, String suffix, boolean nosuffix, boolean skipMerge, boolean skipMinify, String webappSourceDir, String webappTargetDir, String inputDir, List<String> sourceFiles, List<String> sourceIncludes, List<String> sourceExcludes, String outputDir, String outputFilename, MinifyMojo.Engine engine, YuiConfig yuiConfig) Task constructor. -
Method Summary
-
Field Details
-
TEMP_SUFFIX
- See Also:
-
-
Constructor Details
-
ProcessFilesTask
public ProcessFilesTask(org.apache.maven.plugin.logging.Log log, boolean verbose, Integer bufferSize, Charset charset, String suffix, boolean nosuffix, boolean skipMerge, boolean skipMinify, String webappSourceDir, String webappTargetDir, String inputDir, List<String> sourceFiles, List<String> sourceIncludes, List<String> sourceExcludes, String outputDir, String outputFilename, MinifyMojo.Engine engine, YuiConfig yuiConfig) throws FileNotFoundException Task constructor.- Parameters:
log
- Maven plugin logverbose
- display additional infobufferSize
- size of the buffer used to read source filescharset
- if a character set is specified, a byte-to-char variant allows the encoding to be selected. Otherwise, only byte-to-byte operations are usedsuffix
- final file name suffixnosuffix
- whether to use a suffix for the minified file name or notskipMerge
- whether to skip the merge step or notskipMinify
- whether to skip the minify step or notwebappSourceDir
- web resources source directorywebappTargetDir
- web resources target directoryinputDir
- directory containing source filessourceFiles
- list of source files to includesourceIncludes
- list of source files to includesourceExcludes
- list of source files to excludeoutputDir
- directory to write the final fileoutputFilename
- the output file nameengine
- minify processor engine selectedyuiConfig
- YUI Compressor configuration- Throws:
FileNotFoundException
- when the given source file does not exist
-
-
Method Details
-
call
Method executed by the thread.- Specified by:
call
in interfaceCallable<Object>
- Throws:
IOException
- when the merge or minify steps fail
-