Class 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 Detail

      • CompressorImpl

        public CompressorImpl()
    • 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:
        compress in interface net.jangaroo.jooc.api.Compressor
        Throws:
        IOException
      • compressFileList

        public void compressFileList​(File fileList,
                                     File output)
                              throws IOException
        Specified by:
        compressFileList in interface net.jangaroo.jooc.api.Compressor
        Throws:
        IOException