This is an automated email from the ASF dual-hosted git repository. matthiasblaesing pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push: new 6dce67c Save cause of download error for BuildException new 73fb19b Merge pull request #3873 from jgneff/save-first-problem 6dce67c is described below commit 6dce67cbce77f04677bda01f4b853064b4d4c5c3 Author: John Neffenger <j...@status6.com> AuthorDate: Fri Mar 25 12:21:13 2022 -0700 Save cause of download error for BuildException 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. --- nbbuild/antsrc/org/netbeans/nbbuild/extlibs/DownloadBinaries.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nbbuild/antsrc/org/netbeans/nbbuild/extlibs/DownloadBinaries.java b/nbbuild/antsrc/org/netbeans/nbbuild/extlibs/DownloadBinaries.java index bb1b352..4f666e9 100644 --- a/nbbuild/antsrc/org/netbeans/nbbuild/extlibs/DownloadBinaries.java +++ b/nbbuild/antsrc/org/netbeans/nbbuild/extlibs/DownloadBinaries.java @@ -312,7 +312,8 @@ public class DownloadBinaries extends Task { log("Trying: " + url, Project.MSG_VERBOSE); return downloadFromServer(this, url); } catch (IOException ex) { - //Try the next URL + // Saves the exception and tries the next URL, if present + firstProblem = ex; } } throw new BuildException("Could not download " + cacheName + " from " + server + ": " + firstProblem, firstProblem, getLocation()); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists