Package net.jangaroo.jooc
Class CompressorImpl
- java.lang.Object
-
- net.jangaroo.jooc.CompressorImpl
-
- All Implemented Interfaces:
net.jangaroo.jooc.api.Compressor
public class CompressorImpl extends Object implements net.jangaroo.jooc.api.Compressor
A facade to call the Google Closure compiler
-
-
Constructor Summary
Constructors Constructor Description CompressorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompress(Collection<File> sources, File output)Calls the Google Closure compiler with --js {sources} --create_source_map {output.name}.map --source_map_format=V3 --compilation_level WHITESPACE_ONLY --js_output_file {output.path}voidcompressFileList(File fileList, File output)
-
-
-
Method Detail
-
compress
public void compress(Collection<File> sources, File output) throws IOException
Calls the Google Closure compiler with --js {sources} --create_source_map {output.name}.map --source_map_format=V3 --compilation_level WHITESPACE_ONLY --js_output_file {output.path}- Specified by:
compressin interfacenet.jangaroo.jooc.api.Compressor- Throws:
IOException
-
compressFileList
public void compressFileList(File fileList, File output) throws IOException
- Specified by:
compressFileListin interfacenet.jangaroo.jooc.api.Compressor- Throws:
IOException
-
-