From dcaa8c334f30c8a46cf2a9c285cffad82a584d0d Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Thu, 10 Nov 2011 18:40:06 +0000 Subject: [PATCH] SDK: - remove assets folder from ProjectAssetManager classpath git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8637 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../gde/core/assets/ProjectAssetManager.java | 41 ++++++++++--------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/sdk/jme3-core/src/com/jme3/gde/core/assets/ProjectAssetManager.java b/sdk/jme3-core/src/com/jme3/gde/core/assets/ProjectAssetManager.java index 0a1a36d86..5189858c7 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/assets/ProjectAssetManager.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/assets/ProjectAssetManager.java @@ -141,38 +141,39 @@ public class ProjectAssetManager extends DesktopAssetManager { try { FileObject[] roots = path.getRoots(); for (FileObject fileObject : roots) { - FileChangeListener listener = new FileChangeListener() { + if (!fileObject.equals(getAssetFolder())) { + FileChangeListener listener = new FileChangeListener() { - public void fileFolderCreated(FileEvent fe) { + public void fileFolderCreated(FileEvent fe) { // notifyClassPathListeners(); - } + } - public void fileDataCreated(FileEvent fe) { + public void fileDataCreated(FileEvent fe) { // notifyClassPathListeners(); - } + } - public void fileChanged(FileEvent fe) { - System.out.println(fe); - if (!fe.isExpected()) { - notifyClassPathListeners(); + public void fileChanged(FileEvent fe) { + if (!fe.isExpected()) { + notifyClassPathListeners(); + } } - } - public void fileDeleted(FileEvent fe) { + public void fileDeleted(FileEvent fe) { // notifyClassPathListeners(); - } + } - public void fileRenamed(FileRenameEvent fre) { + public void fileRenamed(FileRenameEvent fre) { // notifyClassPathListeners(); - } + } - public void fileAttributeChanged(FileAttributeEvent fae) { + public void fileAttributeChanged(FileAttributeEvent fae) { // notifyClassPathListeners(); - } - }; - fileObject.addRecursiveListener(listener); - classPathItems.add(new ClassPathItem(fileObject, listener)); - urls.add(fileObject.getURL()); + } + }; + fileObject.addRecursiveListener(listener); + classPathItems.add(new ClassPathItem(fileObject, listener)); + urls.add(fileObject.getURL()); + } if (fileObject.getURL().toExternalForm().startsWith("jar")) { Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Add classpath locator:{0}", fileObject.getURL()); jarItems.add(fileObject);