Package com.google.gwt.dev.util.log

Examples of com.google.gwt.dev.util.log.AbstractTreeLogger


          "Build Output for " + options.getModuleNames(), 800, 600, true);

      // Eager AWT initialization for OS X to ensure safe coexistence with SWT.
      BootStrapPlatform.initGui();

      final AbstractTreeLogger logger = loggerWindow.getLogger();
      logger.setMaxDetail(options.getLogLevel());
      final boolean[] success = new boolean[1];

      // Compiler will be spawned onto a second thread, UI thread for tree
      // logger will remain on the main.
      Thread compilerThread = new Thread(new Runnable() {
        public void run() {
          success[0] = doRun(logger, task);
        }
      });

      compilerThread.setName("GWTCompiler Thread");
      compilerThread.start();
      loggerWindow.run();

      // Even if the tree logger window is closed, we wait for the compiler
      // to finish.
      waitForThreadToTerminate(compilerThread);

      return success[0];
    } else {
      // Compile tasks without -treeLogger should run headless.
      if (System.getProperty("java.awt.headless") == null) {
        System.setProperty("java.awt.headless", "true");
      }
      PrintWriterTreeLogger logger = new PrintWriterTreeLogger();
      logger.setMaxDetail(options.getLogLevel());
      return doRun(logger, task);
    }
  }
View Full Code Here


  protected abstract String getTitleText();

  @Override
  protected void initializeLogger() {
    final AbstractTreeLogger logger = mainWnd.getLogger();
    logger.setMaxDetail(options.getLogLevel());
  }
View Full Code Here

    msgView.setMinimumSize(minSize);
    treeView.setMinimumSize(minSize);
    splitter.setDividerLocation(0.80);
    add(splitter);

    AbstractTreeLogger uiLogger = new SwingTreeLogger(this);
    uiLogger.setMaxDetail(maxLevel);
    TreeLogger bestLogger = uiLogger;
    if (logFile != null) {
      try {
        PrintWriterTreeLogger fileLogger = new PrintWriterTreeLogger(logFile);
        fileLogger.setMaxDetail(maxLevel);
View Full Code Here

   * @return A collection of ApiChange
   */
  static Collection<ApiChange> getApiChanges(Map<String, String> existingTypesToSourcesMap,
      Map<String, String> newTypesToSourcesMap) throws UnableToCompleteException, NotFoundException {

    AbstractTreeLogger logger = new PrintWriterTreeLogger();
    logger.setMaxDetail(TreeLogger.ERROR);

    Set<Resource> set1 = new HashSet<Resource>();
    for (Map.Entry<String, String> entry : existingTypesToSourcesMap.entrySet()) {
      set1.add(new StaticJavaResource(entry.getKey(), entry.getValue()));
    }
View Full Code Here

  ApiContainer api2 = null;
  ApiContainer apiSameAs1 = null;

  @Override
  public void setUp() throws UnableToCompleteException {
    AbstractTreeLogger logger = new PrintWriterTreeLogger();
    logger.setMaxDetail(TreeLogger.ERROR);

    api1 =
        new ApiContainer("Api1", new HashSet<Resource>(Arrays
            .asList(ApiContainerTest.getScuArray())), new HashSet<String>(), logger);
    apiSameAs1 =
View Full Code Here

  protected abstract String getTitleText();

  @Override
  protected void initializeLogger() {
    final AbstractTreeLogger logger = mainWnd.getLogger();
    logger.setMaxDetail(options.getLogLevel());
  }
View Full Code Here

  protected BrowserWidgetHost getBrowserHost() {
    return browserHost;
  }

  protected void initializeLogger() {
    final AbstractTreeLogger logger = mainWnd.getLogger();
    logger.setMaxDetail(logLevel);
  }
View Full Code Here

          "Build Output for " + moduleName, 800, 600, true);

      // Eager AWT initialization for OS X to ensure safe coexistence with SWT.
      BootStrapPlatform.maybeInitializeAWT();

      final AbstractTreeLogger logger = loggerWindow.getLogger();
      final boolean[] success = new boolean[1];

      // Compiler will be spawned onto a second thread, UI thread for tree
      // logger will remain on the main.
      Thread compilerThread = new Thread(new Runnable() {
View Full Code Here

      // Eager AWT initialization for OS X to ensure safe coexistence with
      // SWT.
      BootStrapPlatform.maybeInitializeAWT();

      final AbstractTreeLogger logger = loggerWindow.getLogger();
      final boolean[] success = new boolean[1];

      // Compiler will be spawned onto a second thread, UI thread for tree
      // logger will remain on the main.
      Thread compilerThread = new Thread(new Runnable() {
View Full Code Here

        }
      }
    });

    uiLogger = new TreeItemLogger();
    AbstractTreeLogger bestLogger = uiLogger;
    if (logFile != null) {
      try {
        PrintWriterTreeLogger fileLogger = new PrintWriterTreeLogger(logFile);
        bestLogger = new CompositeTreeLogger(uiLogger, fileLogger);
        fileLogger.setMaxDetail(logLevel);
View Full Code Here

TOP

Related Classes of com.google.gwt.dev.util.log.AbstractTreeLogger

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.