Save cause of download error for BuildException#3873
Save cause of download error for BuildException#3873matthiasblaesing merged 1 commit intoapache:masterfrom
Conversation
When downloading external binaries, save any IOException for the 'cause' parameter of the BuildException. Otherwise, the root cause of the build failure is always null.
|
When the build fails to download an external binary because of an BeforeBefore this change, the error is reported with a AfterAfter this change, the original Now I see that the HTTPS proxy server in my build environment is returning a response status code of 503 Service Unavailable for this file:
TestsI ran the unit tests for the NetBeans Ant task $ ant -Dincludes=**/DownloadBinariesTest.class localtest
...
localtest:
[junit] Testsuite: org.netbeans.nbbuild.extlibs.DownloadBinariesTest
[junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.162 sec
[junit]
BUILD SUCCESSFUL
Total time: 1 second |
|
Thank you - looks good, unittests are green. Lets get this in. |
When downloading external binaries, save any
IOExceptionfor thecauseparameter of theBuildException. Otherwise, the root cause of the build failure is alwaysnull.