- remove assets folder from ProjectAssetManager classpath

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8637 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent 8f61aa757c
commit dcaa8c334f
  1. 3
      sdk/jme3-core/src/com/jme3/gde/core/assets/ProjectAssetManager.java

@ -141,6 +141,7 @@ public class ProjectAssetManager extends DesktopAssetManager {
try {
FileObject[] roots = path.getRoots();
for (FileObject fileObject : roots) {
if (!fileObject.equals(getAssetFolder())) {
FileChangeListener listener = new FileChangeListener() {
public void fileFolderCreated(FileEvent fe) {
@ -152,7 +153,6 @@ public class ProjectAssetManager extends DesktopAssetManager {
}
public void fileChanged(FileEvent fe) {
System.out.println(fe);
if (!fe.isExpected()) {
notifyClassPathListeners();
}
@ -173,6 +173,7 @@ public class ProjectAssetManager extends DesktopAssetManager {
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);

Loading…
Cancel
Save