Author: scabanovich
Date: 2011-10-17 20:18:54 -0400 (Mon, 17 Oct 2011)
New Revision: 35742
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/scanner/lib/ClassPathMonitor.java
Log:
JBIDE-9918
https://issues.jboss.org/browse/JBIDE-9918
Jar modification is fired to builders.
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/scanner/lib/ClassPathMonitor.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/scanner/lib/ClassPathMonitor.java 2011-10-18
00:17:27 UTC (rev 35741)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/scanner/lib/ClassPathMonitor.java 2011-10-18
00:18:54 UTC (rev 35742)
@@ -77,6 +77,7 @@
for (int i = 0; i < paths.size(); i++) {
String p = paths.get(i);
if(!requestForLoad(p)) continue;
+ removedPaths.add(new Path(p));
String fileName = new File(p).getName();
if(EclipseResourceUtil.SYSTEM_JAR_SET.contains(fileName)) continue;
@@ -261,4 +262,11 @@
}
return result;
}
+
+ public synchronized void libraryChanged(String path) {
+ super.libraryChanged(path);
+ removedPaths.add(new Path(path));
+ project.getExtensionManager().pathRemoved(path);
+ }
+
}
\ No newline at end of file