Package com.google.gwt.core.ext

Examples of com.google.gwt.core.ext.TreeLogger.log()


        if (!validate(branch, options, module, options.getGenDir(),
            compilerWorkDir, options.getDumpSignatureFile())) {
          branch.log(TreeLogger.ERROR, "Validation failed");
          return false;
        }
        branch.log(TreeLogger.INFO, "Validation succeeded");
      } else {
        TreeLogger branch = logger.branch(TreeLogger.INFO,
            "Precompiling module " + module.getName());
        PropertyPermutations allPermutations = new PropertyPermutations(
            module.getProperties());
View Full Code Here


          Precompilation precompilation = precompile(branch, options, module,
              actualPermutations, localPermutations, options.getGenDir(),
              compilerWorkDir, options.getDumpSignatureFile());
          if (precompilation == null) {
            branch.log(TreeLogger.ERROR, "Precompilation failed");
            return false;
          }
          int actualNumPermsPrecompiled = precompilation.getPermutations().length;
          String precompilationFilename = PrecompilationFile.fileNameForPermutations(
              actualPermutations, actualNumPermsPrecompiled);
View Full Code Here

              actualPermutations, actualNumPermsPrecompiled);
          try {
            precompilationJar.putNextEntry(new ZipEntry(precompilationFilename));
            Util.writeObjectToStream(precompilationJar, precompilation);
          } catch (IOException e) {
            branch.log(TreeLogger.ERROR,
                "Failed to write a precompilation result", e);
            return false;
          }

          actualPermutations += actualNumPermsPrecompiled;
View Full Code Here

                "Failed to write a precompilation result", e);
            return false;
          }

          actualPermutations += actualNumPermsPrecompiled;
          branch.log(TreeLogger.DEBUG, "Compiled " + actualNumPermsPrecompiled
              + " permutations starting from " + potentialFirstPerm);
        }

        try {
          precompilationJar.close();
View Full Code Here

        }

        try {
          precompilationJar.close();
        } catch (IOException e) {
          branch.log(TreeLogger.ERROR, "Failed to finalize "
              + PRECOMPILE_FILENAME, e);
          return false;
        }

        Util.writeStringAsFile(branch, new File(compilerWorkDir,
View Full Code Here

          return false;
        }

        Util.writeStringAsFile(branch, new File(compilerWorkDir,
            PERM_COUNT_FILENAME), String.valueOf(actualPermutations));
        branch.log(TreeLogger.INFO,
            "Precompilation succeeded, number of permutations: "
                + actualPermutations);
      }
    }
    return true;
View Full Code Here

              return;
            }
            TreeLogger logger = work.getLogger();
            try {
              worker.compile(logger, work.getPerm(), work.getResultFile());
              logger.log(TreeLogger.DEBUG, "Successfully compiled permutation");
              resultsQueue.put(Result.SUCCESS);
            } catch (TransientWorkerException e) {
              logger.log(TreeLogger.DEBUG,
                  "Worker died, will retry Permutation", e);
              workQueue.add(work);
View Full Code Here

            try {
              worker.compile(logger, work.getPerm(), work.getResultFile());
              logger.log(TreeLogger.DEBUG, "Successfully compiled permutation");
              resultsQueue.put(Result.SUCCESS);
            } catch (TransientWorkerException e) {
              logger.log(TreeLogger.DEBUG,
                  "Worker died, will retry Permutation", e);
              workQueue.add(work);
              threadDeathResult = Result.WORKER_DEATH;
              return;
            } catch (UnableToCompleteException e) {
View Full Code Here

                  "Worker died, will retry Permutation", e);
              workQueue.add(work);
              threadDeathResult = Result.WORKER_DEATH;
              return;
            } catch (UnableToCompleteException e) {
              logger.log(TreeLogger.ERROR,
                  "Unrecoverable exception, shutting down", e);
              return;
            }
          }
        } catch (InterruptedException e) {
View Full Code Here

          "Invoking Linker " + linker.getDescription(), null);
      workingArtifacts.freeze();
      try {
        workingArtifacts = linker.link(linkerLogger, this, workingArtifacts);
      } catch (Throwable e) {
        linkerLogger.log(TreeLogger.ERROR, "Failed to link", e);
        throw new UnableToCompleteException();
      }
    }
    return workingArtifacts;
  }
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.