Package org.apache.maven.bootstrap.compile

Examples of org.apache.maven.bootstrap.compile.CompilerError


    List messages = parseModernStream(
            new BufferedReader(new InputStreamReader(new ByteArrayInputStream(err.toByteArray()))));

    if (ok.intValue() != 0 && messages.isEmpty()) {
      // TODO: exception?
      messages.add(new CompilerError(
              "Failure executing javac, but could not parse the error:\n\n" + err.toString(), true));
    }

    return messages;
  }
View Full Code Here


          return errors;
        }

        // TODO: there should be a better way to parse these
        if (buffer.length() == 0 && line.startsWith("error: ")) {
          errors.add(new CompilerError(line, true));
        }
        else if (buffer.length() == 0 && line.startsWith("Note: ")) {
          // skip this one - it is JDK 1.5 telling us that the interface is deprecated.
        }
        else {
View Full Code Here

      if (endcolumn == -1) {
        endcolumn = context.length();
      }

      return new CompilerError(file, true, line, startcolumn, line, endcolumn, message);
    }
    catch (NoSuchElementException nse) {
      // TODO: exception?
      return new CompilerError("no more tokens - could not parse error message: " + error, true);
    }
    catch (Exception nse) {
      // TODO: exception?
      return new CompilerError("could not parse error message: " + error, true);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.maven.bootstrap.compile.CompilerError

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.