Examples of EmittedArtifact


Examples of com.google.gwt.core.ext.linker.EmittedArtifact

    replaceAll(buffer, "__MODULE_NAME__", context.getModuleName());
    String script =
        generatePrimaryFragmentString(logger, context, result, buffer.toString(), 1, artifacts);

    EmittedArtifact devArtifact = emitString(logger, script, outputFilename, lastModified);
    artifacts.add(devArtifact);
  }
View Full Code Here

Examples of com.google.gwt.core.ext.linker.EmittedArtifact

    PropertiesMappingArtifact mappingArtifact =
        new PropertiesMappingArtifact(CrossSiteIframeLinker.class, permutationsUtil
            .getPermutationsMap());

    toReturn.add(mappingArtifact);
    EmittedArtifact serializedMap;
    try {
      String mappings = mappingArtifact.getSerialized();
      // CHECKSTYLE_OFF
      mappings = mappings.concat("Devmode:" + getHostedFilename());
      // CHECKSTYLE_ON
      serializedMap = emitString(logger, mappings, "compilation-mappings.txt");
      // TODO(unnurg): make this Deploy
      serializedMap.setVisibility(Visibility.Public);
      toReturn.add(serializedMap);
    } catch (UnableToCompleteException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of com.google.gwt.core.ext.linker.EmittedArtifact

        throw new UnableToCompleteException();
      }

      final URLConnection connection = resource.openConnection();
      // TODO: extract URLArtifact class?
      EmittedArtifact hostedHtml = new EmittedArtifact(IFrameLinker.class,
          "hosted.html") {
        @Override
        public InputStream getContents(TreeLogger logger)
            throws UnableToCompleteException {
          try {
View Full Code Here

Examples of com.google.gwt.core.ext.linker.EmittedArtifact

   * Override to change the manner in which the symbol map is emitted.
   */
  protected void doEmitSymbolMap(TreeLogger logger, ArtifactSet artifacts,
      CompilationResult result, ByteArrayOutputStream out)
      throws UnableToCompleteException {
    EmittedArtifact symbolMapArtifact = emitBytes(logger, out.toByteArray(),
        result.getStrongName() + STRONG_NAME_SUFFIX);
    symbolMapArtifact.setPrivate(true);
    artifacts.add(symbolMapArtifact);
  }
View Full Code Here

Examples of com.google.gwt.core.ext.linker.EmittedArtifact

      builder.append("/{context}/" + moduleName + "/" + getManifestLoaderName(permutationName) + "\n");
    }
   
    builder.append("\nNETWORK:\n");
    builder.append("*\n");
    EmittedArtifact manifest = emitString(logger, builder.toString(), getManifestName());
    artifacts.add(manifest);
  }
View Full Code Here

Examples of com.google.gwt.core.ext.linker.EmittedArtifact

            si.getStrongName(), si.getPropMap());

    if (artifacts != null) {
      for (Artifact<?> artifact : artifacts) {
        if (artifact instanceof EmittedArtifact) {
          EmittedArtifact ea = (EmittedArtifact) artifact;
          String pathName = ea.getPartialPath();
          if (shouldBeCached(pathName)) {
            cacheArtifact.addCachedFile(pathName);
          }
        }
      }
View Full Code Here

Examples of com.google.gwt.core.ext.linker.EmittedArtifact

    // Add permutation independent resources
    if (globalArtifacts != null) {
      for (Artifact<?> a : globalArtifacts) {
        if (a instanceof EmittedArtifact) {
          EmittedArtifact ea = (EmittedArtifact) a;
          String pathName = ea.getPartialPath();
          if (shouldBeCached(pathName) && !isPermutationSpecific(globalArtifacts, pathName)) {
            cacheableGeneratedResources.add(pathName);
          }
        }
      }
View Full Code Here

Examples of com.google.gwt.core.ext.linker.EmittedArtifact

    replaceAll(buffer, "__MODULE_NAME__", context.getModuleName());
    String script =
        generatePrimaryFragmentString(logger, context, result, buffer.toString(), 1, artifacts);

    EmittedArtifact devArtifact = emitString(logger, script, outputFilename, lastModified);
    artifacts.add(devArtifact);
  }
View Full Code Here

Examples of com.google.gwt.core.ext.linker.EmittedArtifact

    PropertiesMappingArtifact mappingArtifact =
        new PropertiesMappingArtifact(CrossSiteIframeLinker.class, permutationsUtil
            .getPermutationsMap());

    toReturn.add(mappingArtifact);
    EmittedArtifact serializedMap;
    try {
      String mappings = mappingArtifact.getSerialized();
      // CHECKSTYLE_OFF
      mappings = mappings.concat("Devmode:" + getHostedFilename());
      // CHECKSTYLE_ON
      serializedMap = emitString(logger, mappings, "compilation-mappings.txt");
      // TODO(unnurg): make this Deploy
      serializedMap.setVisibility(Visibility.Public);
      toReturn.add(serializedMap);
    } catch (UnableToCompleteException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of com.google.gwt.core.ext.linker.EmittedArtifact

      throws UnableToCompleteException {
    StringBuffer b = new StringBuffer();
    b.append(getModulePrefix(logger, context));
    b.append(result.getJavaScript());
    b.append(getModuleSuffix(logger, context));
    EmittedArtifact toReturn = emitWithStrongName(logger,
        Util.getBytes(b.toString()), "", getCompilationExtension(logger,
            context));
    compilationPartialPaths.put(result, toReturn.getPartialPath());
    return toReturn;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.