Package com.google.gwt.core.ext.linker.impl

Examples of com.google.gwt.core.ext.linker.impl.StandardLinkerContext


            PermutationResult.class, f));
      }

      TreeLogger branch = logger.branch(TreeLogger.INFO, "Linking module "
          + module.getName());
      StandardLinkerContext linkerContext = new StandardLinkerContext(branch,
          module, precompileOptions);

      ArtifactSet artifacts = doLink(branch, linkerContext, generatedArtifacts,
          resultFiles);
      try {
View Full Code Here


    }
    if (developmentMode) {
      // BACKWARDS COMPATIBILITY: many linkers currently fail in dev mode.
      try {
        Linker l = module.getActivePrimaryLinker().newInstance();
        StandardLinkerContext context =
          new StandardLinkerContext(getTopLogger(), module, null);
        if (!l.supportsDevModeInJunit(context)) {
          if (module.getLinker("std") != null) {
            // TODO: unfortunately, this could be race condition between dev/prod
            module.addLinker("std");
          }
View Full Code Here

    if (logger.isLoggable(TreeLogger.TRACE)) {
      logger.log(TreeLogger.TRACE,
          "Generating a script selection script for module " + moduleName);
    }
    ModuleDef module = getModuleDef(logger, moduleName);
    StandardLinkerContext context = new StandardLinkerContext(logger, module,
        new JJSOptionsImpl());
    ArtifactSet artifacts = context.getArtifactsForPublicResources(logger,
        module);
    HostedModeLinker linker = new HostedModeLinker();
    return linker.generateSelectionScript(logger, context, artifacts);
  }
View Full Code Here

    WebModeCompilerFrontEnd frontEnd = new WebModeCompilerFrontEnd(
        compilationState, rebindPermOracle);
    jjs = new JavaToJavaScriptCompiler(logger, frontEnd, declEntryPts,
        jjsOptions);

    StandardLinkerContext linkerContext = new StandardLinkerContext(logger,
        module, outDir, generatorResourcesDir, jjsOptions);
    compilePermutations(logger, linkerContext, generatorArtifacts);

    if (jjsOptions.isValidateOnly()) {
      logger.log(TreeLogger.INFO, "Validation succeeded", null);
      return;
    }

    logger.log(TreeLogger.INFO, "Compilation succeeded", null);
    linkerContext.addOrReplaceArtifacts(generatorArtifacts);
    linkerContext.link(logger, linkerContext, null);
  }
View Full Code Here

  private String genSelectionScript(TreeLogger logger, String moduleName)
      throws UnableToCompleteException {
    logger.log(TreeLogger.TRACE,
        "Generating a script selection script for module " + moduleName);

    StandardLinkerContext context = new StandardLinkerContext(logger,
        getModuleDef(logger, moduleName), null, null, new JJSOptions());
    HostedModeLinker linker = new HostedModeLinker();
    return linker.generateSelectionScript(logger, context,
        context.getArtifacts());
  }
View Full Code Here

    }
    if (developmentMode) {
      // BACKWARDS COMPATIBILITY: many linkers currently fail in dev mode.
      try {
        Linker l = module.getActivePrimaryLinker().newInstance();
        StandardLinkerContext context = new StandardLinkerContext(getTopLogger(), module, null);
        //if (!l.supportsDevModeInJunit(context)) {
        if (module.getLinker("std") != null) {
          // TODO: unfortunately, this could be race condition between dev/prod
          module.addLinker("std");
        }
View Full Code Here

    }
    if (developmentMode) {
      // BACKWARDS COMPATIBILITY: many linkers currently fail in dev mode.
      try {
        Linker l = module.getActivePrimaryLinker().newInstance();
        StandardLinkerContext context = new StandardLinkerContext(getTopLogger(), module, null);
        //if (!l.supportsDevModeInJunit(context)) {
        if (module.getLinker("std") != null) {
          // TODO: unfortunately, this could be race condition between dev/prod
          module.addLinker("std");
        }
View Full Code Here

    }
    if (developmentMode) {
      // BACKWARDS COMPATIBILITY: many linkers currently fail in dev mode.
      try {
        Linker l = module.getActivePrimaryLinker().newInstance();
        StandardLinkerContext context = new StandardLinkerContext(getTopLogger(), module, null);
        //if (!l.supportsDevModeInJunit(context)) {
        if (module.getLinker("std") != null) {
          // TODO: unfortunately, this could be race condition between dev/prod
          module.addLinker("std");
        }
View Full Code Here

    }
    if (developmentMode) {
      // BACKWARDS COMPATIBILITY: many linkers currently fail in dev mode.
      try {
        Linker l = module.getActivePrimaryLinker().newInstance();
        StandardLinkerContext context = new StandardLinkerContext(
            getTopLogger(), module, compilerContext.getPublicResourceOracle(),
            JsOutputOption.PRETTY);
        if (!l.supportsDevModeInJunit(context)) {
          if (module.getLinker("std") != null) {
            // TODO: unfortunately, this could be race condition between dev/prod
View Full Code Here

  }

  public static void legacyLink(TreeLogger logger, ModuleDef module,
      Precompilation precompilation, File[] resultFiles, File outDir)
      throws UnableToCompleteException {
    StandardLinkerContext linkerContext = new StandardLinkerContext(logger,
        module, precompilation.getUnifiedAst().getOptions());
    ArtifactSet artifacts = doLink(logger, linkerContext, precompilation,
        resultFiles);
    doProduceLegacyOutput(logger, artifacts, linkerContext, module, outDir);
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.core.ext.linker.impl.StandardLinkerContext

Copyright © 2018 www.massapicom. 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.