[GRADLE-289] download wrapper zip to temporary file first Created: 30/Oct/08  Updated: 04/Jan/13  Resolved: 31/Oct/08

Status: Resolved
Project: Gradle
Affects Version/s: 0.4
Fix Version/s: 0.5

Type: Improvement
Reporter: Johannes Zillmann Assignee: Hans Dockter
Resolution: Fixed Votes: 0

Attachments: Text File downloadToTmpFileFirst.patch    

 Description   

I faced the situation now more then 2 times that i canceled the first execution of the wrapper script and so the download of the wrapper dist.
Starting a second time gives me following exception:

Unzipping /Users/jz/.gradle/wrapper/dists/gradle-0.5-081029161231+0100-bin.zip to /Users/jz/.gradle/wrapper/dists
Exception in thread "main" java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:203)
        at java.util.zip.ZipFile.<init>(ZipFile.java:234)
        at org.gradle.wrapper.Install.unzip(Install.java:94)
        at org.gradle.wrapper.Install.createDist(Install.java:63)
        at org.gradle.wrapper.Wrapper.execute(Wrapper.java:48)
        at org.gradle.wrapper.WrapperMain.main(WrapperMain.java:38)

I attached a patch which downloads the zip to a .part file first which should solve the problem.


Generated at Wed Jun 30 11:26:23 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.