public abstract class ProcessFilesTask extends Object implements Callable<Object>
Modifier and Type | Field and Description |
---|---|
protected Integer |
bufferSize |
protected Charset |
charset |
protected MinifyMojo.Engine |
engine |
protected Log |
log |
protected boolean |
nosuffix |
protected boolean |
skipMerge |
protected boolean |
skipMinify |
protected String |
suffix |
static String |
TEMP_SUFFIX |
protected boolean |
verbose |
protected YuiConfig |
yuiConfig |
Constructor and Description |
---|
ProcessFilesTask(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.
|
Modifier and Type | Method and Description |
---|---|
Object |
call()
Method executed by the thread.
|
protected void |
merge(File mergedFile)
Merges a list of source files.
|
public static final String TEMP_SUFFIX
protected final boolean verbose
protected final Integer bufferSize
protected final boolean nosuffix
protected final boolean skipMerge
protected final boolean skipMinify
protected final MinifyMojo.Engine engine
public ProcessFilesTask(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
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 configurationFileNotFoundException
- when the given source file does not existpublic Object call() throws IOException
call
in interface Callable<Object>
IOException
- when the merge or minify steps failprotected void merge(File mergedFile) throws IOException
mergedFile
- output file resulting from the merged stepIOException
- when the merge step failsCopyright © 2009–2016 Samuel Santos. All rights reserved.