From 8bf5ed681b3897378c9e2e41d8d17f89508b5c1c Mon Sep 17 00:00:00 2001 From: Jumper Chen Date: Thu, 16 Feb 2017 18:38:38 +0800 Subject: [PATCH] Fix the copy of the updated maven archetypes issue. --- src/org/zkoss/zkidea/project/ZKProjectsManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) { }