List of usage examples for com.google.gwt.core.ext.linker.impl PermutationsUtil PermutationsUtil
PermutationsUtil
From source file:org.cruxframework.crux.core.rebind.offline.AppCacheLinker.java
License:Apache License
/********************************************************** * javascript manipulation methods//from www . jav a 2 s .c om **********************************************************/ private void emitOfflinePage(TreeLogger logger, LinkerContext context, ArtifactSet artifacts, String offlineScreenId) throws UnableToCompleteException { permutationsUtil = new PermutationsUtil(); permutationsUtil.setupPermutationsMap(artifacts); StringBuffer buffer = readFileToStringBuffer(getOfflinePageTemplate(logger, context), logger); int startPos = buffer.indexOf("// __OFFLINE_SELECTION_END__"); if (startPos != -1) { String ss = generateSelectionScript(logger, context, artifacts); buffer.insert(startPos, ss); } replaceAll(buffer, "__MANIFEST_NAME__", getManifestName()); artifacts.add(emitString(logger, buffer.toString(), offlineScreenId, System.currentTimeMillis())); }