File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ());
You can’t perform that action at this time.
0 commit comments