Skip to content

Commit 345c2b1

Browse files
committed
let me know what is going on
1 parent cb86510 commit 345c2b1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

build/jre/src/Downloader.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ void download() throws IOException {
154154
if (location.size() == 1) {
155155
url = location.get(0);
156156
} else {
157-
throw new RuntimeException("Got " + location.size() + " locations.");
157+
throw new BuildException("Got " + location.size() + " locations.");
158158
}
159159
List<String> cookies = headers.get("Set-Cookie");
160160
conn = (HttpURLConnection) new URL(url).openConnection();
@@ -169,6 +169,7 @@ void download() throws IOException {
169169
InputStream input = conn.getInputStream();
170170
BufferedInputStream bis = new BufferedInputStream(input);
171171
File outputFile = new File(path); //folder, filename);
172+
System.out.format("Downloading %s from %s%n", outputFile.getAbsolutePath(), url);
172173
// Write to a temp file so that we don't have an incomplete download
173174
// masquerading as a good archive.
174175
File tempFile = File.createTempFile("download", "", outputFile.getParentFile());

0 commit comments

Comments
 (0)