Package org.eclipse.jdt.internal.compiler.batch

Examples of org.eclipse.jdt.internal.compiler.batch.Main$Logger


    this.apiLevel = level;
    initializeDefaults();
  }

  private List getClasspath() throws IllegalStateException {
    Main main = new Main(new PrintWriter(System.out), new PrintWriter(System.err), false/*systemExit*/, null/*options*/, null/*progress*/);
    ArrayList allClasspaths = new ArrayList();
    try {
      if ((this.bits & CompilationUnitResolver.INCLUDE_RUNNING_VM_BOOTCLASSPATH) != 0) {
        org.eclipse.jdt.internal.compiler.util.Util.collectRunningVMBootclasspath(allClasspaths);
      }
      if (this.sourcepaths != null) {
        for (int i = 0, max = this.sourcepaths.length; i < max; i++) {
          String encoding = this.sourcepathsEncodings == null ? null : this.sourcepathsEncodings[i];
          main.processPathEntries(
              Main.DEFAULT_SIZE_CLASSPATH,
              allClasspaths, this.sourcepaths[i], encoding, true, false);
        }
      }
      if (this.classpaths != null) {
        for (int i = 0, max = this.classpaths.length; i < max; i++) {
          main.processPathEntries(
              Main.DEFAULT_SIZE_CLASSPATH,
              allClasspaths, this.classpaths[i], null, false, false);
        }
      }
      ArrayList pendingErrors = main.pendingErrors;
View Full Code Here


            strings.length );

    StringWriter out = new StringWriter();
    StringWriter err = new StringWriter();

    Main main = new Main( new PrintWriter( out ), new PrintWriter( err ),
        false );
    main.compile( arguments );
    if ( main.globalErrorsCount > 0 ) {
      throw new RuntimeException( out.toString() + err.toString() );
    }
   
    if ( main.globalWarningsCount > 0 ) {
View Full Code Here

    this.apiLevel = level;
    initializeDefaults();
  }

  private List getClasspath() throws IllegalStateException {
    Main main = new Main(new PrintWriter(System.out), new PrintWriter(System.err), false/*systemExit*/, null/*options*/, null/*progress*/);
    ArrayList allClasspaths = new ArrayList();
    try {
      if ((this.bits & CompilationUnitResolver.INCLUDE_RUNNING_VM_BOOTCLASSPATH) != 0) {
        org.eclipse.jdt.internal.compiler.util.Util.collectRunningVMBootclasspath(allClasspaths);
      }
      if (this.sourcepaths != null) {
        for (int i = 0, max = this.sourcepaths.length; i < max; i++) {
          String encoding = this.sourcepathsEncodings == null ? null : this.sourcepathsEncodings[i];
          main.processPathEntries(
              Main.DEFAULT_SIZE_CLASSPATH,
              allClasspaths, this.sourcepaths[i], encoding, true, false);
        }
      }
      if (this.classpaths != null) {
        for (int i = 0, max = this.classpaths.length; i < max; i++) {
          main.processPathEntries(
              Main.DEFAULT_SIZE_CLASSPATH,
              allClasspaths, this.classpaths[i], null, false, false);
        }
      }
      ArrayList pendingErrors = main.pendingErrors;
View Full Code Here

   *
   * @see javax.tools.Tool#run(java.io.InputStream, java.io.OutputStream,
   *      java.io.OutputStream, java.lang.String[])
   */
  public int run(InputStream in, OutputStream out, OutputStream err, String... arguments) {
    boolean succeed = new Main(new PrintWriter(new OutputStreamWriter(out)), new PrintWriter(new OutputStreamWriter(err)), true/*systemExit*/, null/*options*/, null/*progress*/).compile(arguments);
    return succeed ? 0 : -1;
  }
View Full Code Here

    this.apiLevel = level;
    initializeDefaults();
  }

  private List getClasspath() throws IllegalStateException {
    Main main = new Main(new PrintWriter(System.out), new PrintWriter(System.err), false/*systemExit*/, null/*options*/, null/*progress*/);
    ArrayList allClasspaths = new ArrayList();
    try {
      if ((this.bits & CompilationUnitResolver.INCLUDE_RUNNING_VM_BOOTCLASSPATH) != 0) {
        org.eclipse.jdt.internal.compiler.util.Util.collectRunningVMBootclasspath(allClasspaths);
      }
      if (this.sourcepaths != null) {
        for (int i = 0, max = this.sourcepaths.length; i < max; i++) {
          String encoding = this.sourcepathsEncodings == null ? null : this.sourcepathsEncodings[i];
          main.processPathEntries(
              Main.DEFAULT_SIZE_CLASSPATH,
              allClasspaths, this.sourcepaths[i], encoding, true, false);
        }
      }
      if (this.classpaths != null) {
        for (int i = 0, max = this.classpaths.length; i < max; i++) {
          main.processPathEntries(
              Main.DEFAULT_SIZE_CLASSPATH,
              allClasspaths, this.classpaths[i], null, false, false);
        }
      }
      ArrayList pendingErrors = main.pendingErrors;
View Full Code Here

   * @see javax.tools.Tool#run(java.io.InputStream, java.io.OutputStream,
   *      java.io.OutputStream, java.lang.String[])
   */
  @Override
  public int run(InputStream in, OutputStream out, OutputStream err, String... arguments) {
    boolean succeed = new Main(new PrintWriter(new OutputStreamWriter(out)), new PrintWriter(new OutputStreamWriter(err)), true/*systemExit*/, null/*options*/, null/*progress*/).compile(arguments);
    return succeed ? 0 : -1;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.compiler.batch.Main$Logger

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.