|
@@ -29,13 +29,12 @@ import com.dmdirc.updater.checking.DownloadableUpdate;
|
29
|
29
|
import com.dmdirc.util.collections.ListenerList;
|
30
|
30
|
import com.dmdirc.util.io.DownloadListener;
|
31
|
31
|
import com.dmdirc.util.io.Downloader;
|
|
32
|
+import org.slf4j.LoggerFactory;
|
32
|
33
|
|
|
34
|
+import javax.inject.Inject;
|
33
|
35
|
import java.io.File;
|
34
|
36
|
import java.io.IOException;
|
35
|
|
-
|
36
|
|
-import javax.inject.Inject;
|
37
|
|
-
|
38
|
|
-import org.slf4j.LoggerFactory;
|
|
37
|
+import java.nio.file.Paths;
|
39
|
38
|
|
40
|
39
|
/**
|
41
|
40
|
* An {@link UpdateRetrievalStrategy} that downloads a file specified in a
|
|
@@ -77,7 +76,7 @@ public class DownloadRetrievalStrategy extends TypeSensitiveRetrievalStrategy<Do
|
77
|
76
|
.retrievalProgressChanged(checkResult.getComponent(), 0);
|
78
|
77
|
|
79
|
78
|
LOG.debug("Downloading file from {} to {}", checkResult.getUrl(), file);
|
80
|
|
- downloader.downloadPage(checkResult.getUrl().toString(), file,
|
|
79
|
+ downloader.downloadPage(checkResult.getUrl().toString(), Paths.get(file),
|
81
|
80
|
new DownloadProgressListener(checkResult.getComponent()));
|
82
|
81
|
|
83
|
82
|
listenerList.getCallable(UpdateRetrievalListener.class)
|