com.google.gwt.precompress.linker
Class PrecompressLinker

java.lang.Object
  extended by AbstractLinker
      extended by com.google.gwt.precompress.linker.PrecompressLinker

A linker that precompresses the public artifacts that it sees. That way, a web server that uses gzip transfer encoding can use the precompressed files instead of having to compress them on the fly.

To use this linker, add the following to your module definition:

   <inherits name="com.google.gwt.precompress.Precompress"/>
 

The files to precompress are specified by the configuration property precompress.path.regexes. By default, the uncompressed artifacts are left in the artifact set. If the configuration property precompress.leave.originals is set to false, however, then the uncompressed version is removed.


Constructor Summary
PrecompressLinker()
          
Method Summary
 java.lang.String getDescription()
          
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrecompressLinker

public PrecompressLinker()
Method Detail

getDescription

public java.lang.String getDescription()

link

public ArtifactSet link(TreeLogger logger,
                        LinkerContext context,
                        ArtifactSet artifacts,
                        boolean onePermutation)
                 throws UnableToCompleteException
Throws:
UnableToCompleteException