diff --git a/src/org/zkoss/zkidea/project/ZKProjectsManager.java b/src/org/zkoss/zkidea/project/ZKProjectsManager.java index cec6494..0163ad8 100644 --- a/src/org/zkoss/zkidea/project/ZKProjectsManager.java +++ b/src/org/zkoss/zkidea/project/ZKProjectsManager.java @@ -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) { }