public class ProcessJSFilesTask extends ProcessFilesTask
bufferSize, charset, engine, log, nosuffix, skipMerge, skipMinify, suffix, TEMP_SUFFIX, verbose, yuiConfig
Constructor and Description |
---|
ProcessJSFilesTask(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,
ClosureConfig closureConfig)
Task constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
minify(File mergedFile,
File minifiedFile)
Minifies a JavaScript file.
|
call, merge
public ProcessJSFilesTask(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, ClosureConfig closureConfig) 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 configurationclosureConfig
- Google Closure Compiler configurationFileNotFoundException
- when the given source file does not existprotected void minify(File mergedFile, File minifiedFile) throws IOException
mergedFile
- input file resulting from the merged stepminifiedFile
- output file resulting from the minify stepIOException
- when the minify step failsCopyright © 2009–2016 Samuel Santos. All rights reserved.