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