|
|
@ -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"); |
|
|
|