Package jdolly.examples

Examples of jdolly.examples.TestLogger


  public static void generatePrograms(boolean printPrograms,
      boolean logFiles, boolean checkCompilationErrors, Long maxPrograms) {

    long count = 0;

    TestLogger logger = new TestLogger(output);

    for (List<CompilationUnit> cus : generator) {

      if (maxPrograms != null && count == maxPrograms)
        break;

      if (printPrograms) {
        for (CompilationUnit compilationUnit : cus) {
          System.out.println(compilationUnit);
        }

      }

      if (logFiles)
        logger.logGenerated(cus, checkCompilationErrors);

      count++;

    }

    if (checkCompilationErrors) {
      System.out.println("n�mero de erros de compila��o: "
          + logger.getCompilererrors());
      double per = (logger.getCompilererrors() * 100)
          / logger.getGeneratedCount();
      System.out.println("porcentagem de erros de compila��o:" + per);
    }

  }
View Full Code Here

TOP

Related Classes of jdolly.examples.TestLogger

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.