Package org.codehaus.plexus.compiler

Examples of org.codehaus.plexus.compiler.CompilerError


        catch ( IOException e )
        {
            throw new CompilerException( "An exception occurred while creating output file", e );
        }

        return Collections.singletonList( new CompilerError( "message 1", shouldFail ) );
    }
View Full Code Here


        else
        {
            message = "No message";
        }

        return new CompilerError( fileName,
                                  true,
                                  line,
                                  column,
                                  line,
                                  column,
View Full Code Here

                                  message );
    }

    private CompilerError handleWarning( IProblem warning )
    {
        return new CompilerError( new String( warning.getOriginatingFileName() ),
                                  false,
                                  warning.getSourceLineNumber(),
                                  warning.getSourceStart(),
                                  warning.getSourceLineNumber(),
                                  warning.getSourceEnd(),
View Full Code Here

        if ( messages.size() == 1 )
        {
            sb.append( LS );

            CompilerError compilerError = (CompilerError) messages.get( 0 );

            sb.append( compilerError ).append( LS );
        }
       
        return sb.toString();
View Full Code Here

        }

        if ( returnCode != 0 && messages.isEmpty() )
        {
            // TODO: exception?
            messages.add( new CompilerError( "Failure executing the compiler, but could not parse the error:" +  EOL +
                                             stringWriter.toString(), true ) );
        }

        return messages;
    }
View Full Code Here

        String line = bufferedReader.readLine();

        while( line != null )
        {
            CompilerError compilerError = parseLine( line );

            if ( compilerError != null )
            {
                messages.add( compilerError );
            }
View Full Code Here

            System.err.println( "Unknown output: " + line );

            return null;
        }

        return new CompilerError( file,
                                  error,
                                  startline,
                                  startcolumn,
                                  endline,
                                  endcolumn,
View Full Code Here

        else
        {
            message = "No message";
        }

        return new CompilerError( fileName,
                                  true,
                                  line,
                                  column,
                                  line,
                                  column,
View Full Code Here

                                  message );
    }

    private CompilerError handleWarning( IProblem warning )
    {
        return new CompilerError( new String( warning.getOriginatingFileName() ),
                                  false,
                                  warning.getSourceLineNumber(),
                                  warning.getSourceStart(),
                                  warning.getSourceLineNumber(),
                                  warning.getSourceEnd(),
View Full Code Here

        catch ( IOException e )
        {
            throw new CompilerException( "An exception occurred while creating output file", e );
        }

        return Collections.singletonList( new CompilerError( "message 1", shouldFail ) );
    }
View Full Code Here

TOP

Related Classes of org.codehaus.plexus.compiler.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.