Skip to content

Commit

Permalink
Fix the copy of the updated maven archetypes issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jumperchen committed Feb 16, 2017
1 parent 6bf8e36 commit 8bf5ed6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/org/zkoss/zkidea/project/ZKProjectsManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,11 @@ private void updateMavenArchetype() {
return; // try next time.
FileUtil.writeToFile(fileTmp, download);
// HttpRequests.request(ZKMavenArchetypesProvider.MAVEN_ARCHETYPE_URL).saveToFile(fileTmp, ProgressManager.getGlobalProgressIndicator());

if (fileTmp.length() > fileSrc.length()) {
// to compare with length is not correct
// if (fileTmp.length() > fileSrc.length()) {
FileUtil.copy(fileTmp, fileSrc);
fileTmp.deleteOnExit();
}
// }
fileSrc.setLastModified(new Date().getTime() + 7 * 24 * 60 * 60 * 1000);
} catch (IOException e) {
}
Expand Down

0 comments on commit 8bf5ed6

Please sign in to comment.