- fix ProjectAssetManager classpath url gathering

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

@ -129,9 +129,9 @@ public class ProjectAssetManager extends DesktopAssetManager {
try { try {
FileObject[] roots = path.getRoots(); FileObject[] roots = path.getRoots();
for (FileObject fileObject : roots) { for (FileObject fileObject : roots) {
urls.add(fileObject.getURL());
if(fileObject.getURL().toExternalForm().startsWith("jar")){ if(fileObject.getURL().toExternalForm().startsWith("jar")){
Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Add classpath locator:{0}", fileObject.getURL()); Logger.getLogger(this.getClass().getName()).log(Level.INFO, "Add classpath locator:{0}", fileObject.getURL());
urls.add(fileObject.getURL());
classPathItems.add(fileObject); classPathItems.add(fileObject);
registerLocator(fileObject.getURL().toExternalForm(), registerLocator(fileObject.getURL().toExternalForm(),
"com.jme3.asset.plugins.UrlLocator"); "com.jme3.asset.plugins.UrlLocator");

Loading…
Cancel
Save