Example usage for com.google.gwt.core.ext.linker.impl PropertiesMappingArtifact getSerialized

List of usage examples for com.google.gwt.core.ext.linker.impl PropertiesMappingArtifact getSerialized

Introduction

In this page you can find the example usage for com.google.gwt.core.ext.linker.impl PropertiesMappingArtifact getSerialized.

Prototype

public String getSerialized() 

Source Link

Usage

From source file:cc.alcina.framework.gwt.appcache.linker.PermutationInfoLinker.java

License:Apache License

protected void maybeOutputPropertyMap(TreeLogger logger, LinkerContext context, ArtifactSet toReturn) {
    if (permutationsUtil.getPermutationsMap() == null || permutationsUtil.getPermutationsMap().isEmpty()) {
        return;//from   w  ww .  j  a  v a  2  s  .c o  m
    }
    PropertiesMappingArtifact mappingArtifact = new PropertiesMappingArtifact(CrossSiteIframeLinker.class,
            permutationsUtil.getPermutationsMap());
    toReturn.add(mappingArtifact);
    EmittedArtifact serializedMap;
    try {
        String mappings = mappingArtifact.getSerialized();
        serializedMap = emitString(logger, mappings, "compilation-mappings.txt");
        // TODO(unnurg): make this Deploy
        serializedMap.setVisibility(Visibility.Public);
        toReturn.add(serializedMap);
    } catch (UnableToCompleteException e) {
        e.printStackTrace();
    }
}