Issue Details (XML | Word | Printable)

Key: MOJO-656
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dan Tran
Reporter: DJ Gregor
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Mojo

Error details from FileUtils.copyFile are not rethrown in NativeLinkMojo.getDependencyFile

Created: 22/Feb/07 04:38 PM   Updated: 23/Dec/07 10:06 PM   Resolved: 23/Dec/07 10:06 PM
Return to search
Component/s: native
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Text File NativeLinkMojo-getDependencyFile-exception-improvement.patch (0.7 kB)


Complexity: Intermediate


 Description  « Hide

IOExceptions are caught in NativeLinkMojo.getDependencyFile is copying the dependency and a new MojoExecutionException is thrown, but no details from the IOException are included, nor is any context surrounding the exception (such as what was being copied and to where it was being copied).

The attached patch includes the original IOException as the cause when creating the MojoExecutionException and also includes details on the source and destination files in the exception message.



Dan Tran added a comment - 23/Dec/07 10:06 PM

applied the patch at rev 5848. Thanks


Dan Tran made changes - 23/Dec/07 10:06 PM
Field Original Value New Value
Assignee Dan Tran [ danttran ]
Resolution Fixed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]