From 0ee7f77cccd9809495c5bac92c6dfcce86ebafd2 Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Tue, 31 Mar 2015 11:16:19 -0400 Subject: [PATCH] let me know what is going on --- build/jre/src/Downloader.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/jre/src/Downloader.java b/build/jre/src/Downloader.java index 4b9ca870f..5c989684e 100644 --- a/build/jre/src/Downloader.java +++ b/build/jre/src/Downloader.java @@ -154,7 +154,7 @@ public class Downloader extends Task { if (location.size() == 1) { url = location.get(0); } else { - throw new RuntimeException("Got " + location.size() + " locations."); + throw new BuildException("Got " + location.size() + " locations."); } List cookies = headers.get("Set-Cookie"); conn = (HttpURLConnection) new URL(url).openConnection(); @@ -169,6 +169,7 @@ public class Downloader extends Task { InputStream input = conn.getInputStream(); BufferedInputStream bis = new BufferedInputStream(input); File outputFile = new File(path); //folder, filename); + System.out.format("Downloading %s from %s%n", outputFile.getAbsolutePath(), url); // Write to a temp file so that we don't have an incomplete download // masquerading as a good archive. File tempFile = File.createTempFile("download", "", outputFile.getParentFile());