|
|
@ -83,6 +83,8 @@ public class Natives { |
|
|
|
URLConnection conn = url.openConnection(); |
|
|
|
URLConnection conn = url.openConnection(); |
|
|
|
InputStream in = conn.getInputStream(); |
|
|
|
InputStream in = conn.getInputStream(); |
|
|
|
File targetFile = new File(workingDir, fullname); |
|
|
|
File targetFile = new File(workingDir, fullname); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
if (targetFile.exists()){ |
|
|
|
if (targetFile.exists()){ |
|
|
|
// OK, compare last modified date of this file to
|
|
|
|
// OK, compare last modified date of this file to
|
|
|
|
// file in jar
|
|
|
|
// file in jar
|
|
|
@ -95,7 +97,7 @@ public class Natives { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
try { |
|
|
|
|
|
|
|
OutputStream out = new FileOutputStream(targetFile); |
|
|
|
OutputStream out = new FileOutputStream(targetFile); |
|
|
|
int len; |
|
|
|
int len; |
|
|
|
while ((len = in.read(buf)) > 0) { |
|
|
|
while ((len = in.read(buf)) > 0) { |
|
|
|