@Shardable
@LinkerOrder(value=POST)
public class PrecompressLinker
extends com.google.gwt.core.ext.linker.AbstractLinker
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 and Description |
---|
PrecompressLinker() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
com.google.gwt.core.ext.linker.ArtifactSet |
link(com.google.gwt.core.ext.TreeLogger logger,
com.google.gwt.core.ext.LinkerContext context,
com.google.gwt.core.ext.linker.ArtifactSet artifacts,
boolean onePermutation) |
emitBytes, emitBytes, emitInputStream, emitInputStream, emitString, emitString, emitWithStrongName, emitWithStrongName
public String getDescription()
getDescription
in class com.google.gwt.core.ext.Linker
public com.google.gwt.core.ext.linker.ArtifactSet link(com.google.gwt.core.ext.TreeLogger logger, com.google.gwt.core.ext.LinkerContext context, com.google.gwt.core.ext.linker.ArtifactSet artifacts, boolean onePermutation) throws com.google.gwt.core.ext.UnableToCompleteException
link
in class com.google.gwt.core.ext.Linker
com.google.gwt.core.ext.UnableToCompleteException
Copyright © 2016. All rights reserved.