AbstractGwtShellMojo hides failure information when executing the compiler 
process
----------------------------------------------------------------------------------

                 Key: MGWT-198
                 URL: http://jira.codehaus.org/browse/MGWT-198
             Project: Maven 2.x GWT Plugin
          Issue Type: Bug
    Affects Versions: 1.2, 1.3
         Environment: Any
            Reporter: Kevan Dunsmore
         Attachments: AbstractGwtShellMojo.patch

The AbstractGwtShellMojo gobbles up exceptions, re-throwing an 
overly-simplified exception that masks the root cause.   For example:

try
{
    // Execution code
}
.
.
catch ( CommandLineException e )
{
    throw new MojoExecutionException( "Failed to execute command line :\n" + 
command );
}

In the catch block it should include the exception as the "cause" parameter in 
the re-thrown MojoExecutionException.  Without the root cause it's impossible 
to tell why the invocation failed without attaching a debugger.

Patch file included as attachment.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
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