Issue Type: Bug Bug
Affects Versions: 1.1.1
Assignee: Russell Gold
Attachments: myIdl.idl, pom.xml
Created: 14/Jun/12 2:35 AM
Description:

I have an Idl that contains an error (bad type) see attached file "myIdl.idl"
when I execute maven using the attached pom.xml.
Then I can see an error form the idl compiler:

[ERROR] E:\temp\mvn-idlj-pb\src\main\idl\myIdl.idl (line 5): 
UnknownReturnType is an undeclared type.
	UnknownReturnType testFailed();
                  ^

But maven says it is a success (BUILD SUCCESS)
I have tried with parameter failOnError to true but still the same behaviour


The issue comes from the idlj compiler from sun that doesn't return an error code.
But the idlj maven plugin can easily improve this bad behaviour in classe "org.codehaus.mojo.idlj.IdljTranslator" at the end of the method "invokeCompiler":

if ( isFailOnError() && ( exitCode != 0 || err.toString().contains( "Invalid argument" ) ) )
        {
            throw new MojoExecutionException( "IDL compilation failed" );
        }

I think if the error stream contains information that's means there is at least one error (not sure if it can contains warnings...)

Project: Maven 2.x CORBA IDL Compiler Plugin
Priority: Major Major
Reporter: Yann Albou
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to