Author: rob.stryker(a)jboss.com
Date: 2009-11-02 17:58:58 -0500 (Mon, 02 Nov 2009)
New Revision: 18394
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/runtime/ClientAllRuntimeClasspathProvider.java
Log:
JBIDE-5036 - filtering out jaxb-xjc.jar
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/runtime/ClientAllRuntimeClasspathProvider.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/runtime/ClientAllRuntimeClasspathProvider.java 2009-11-02
20:36:58 UTC (rev 18393)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.classpath.core/src/org/jboss/ide/eclipse/as/classpath/core/runtime/ClientAllRuntimeClasspathProvider.java 2009-11-02
22:58:58 UTC (rev 18394)
@@ -46,6 +46,14 @@
// TODO Auto-generated constructor stub
}
+ public static class ClientAllFilter {
+ public static boolean accepts(IPath path) {
+ if( !path.lastSegment().endsWith(EXT_JAR)) return false;
+ if( path.lastSegment().toLowerCase().endsWith("jaxb-xjc.jar")) return
false;
+ return true;
+ }
+ }
+
public IClasspathEntry[] resolveClasspathContainer(IProject project, IRuntime runtime)
{
if( runtime == null )
return new IClasspathEntry[0];
@@ -121,13 +129,14 @@
protected IClasspathEntry getEntry(IPath path) {
return JavaRuntime.newArchiveRuntimeClasspathEntry(path).getClasspathEntry();
}
+
protected void addEntries(IPath folder, ArrayList<IClasspathEntry> list) {
if( folder.toFile().exists()) {
File f = folder.toFile();
if(f.isDirectory()) {
String[] files = f.list();
for( int i = 0; i < files.length; i++ ) {
- if( files[i].endsWith(EXT_JAR)) {
+ if( files[i].endsWith(EXT_JAR) &&
ClientAllFilter.accepts(folder.append(files[i]))) {
list.add(getEntry(folder.append(files[i])));
}
}
Show replies by date