From d8ce14b92af9dbfb63ba862372d95be22e5c2ba4 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Mon, 21 Nov 2011 20:36:56 +0000 Subject: [PATCH] - don't overwrite files if size differs in ProjectExtensionManager git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8753 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../jme3/gde/core/j2seproject/ProjectExtensionManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/jme3-core/src/com/jme3/gde/core/j2seproject/ProjectExtensionManager.java b/sdk/jme3-core/src/com/jme3/gde/core/j2seproject/ProjectExtensionManager.java index 9e8fea565..000186f0f 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/j2seproject/ProjectExtensionManager.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/j2seproject/ProjectExtensionManager.java @@ -444,7 +444,9 @@ public class ProjectExtensionManager { fo.delete(); } fo = FileUtil.createData(projectRoot, fileName); - writeFile(str, fo); + if (entry.getSize() != fo.getSize()) { + writeFile(str, fo); + } } } } finally {