felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsav...@apache.org
Subject svn commit: r794802 - /felix/trunk/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/model/util/JavaHelper.java
Date Thu, 16 Jul 2009 19:38:07 GMT
Author: dsavage
Date: Thu Jul 16 19:38:07 2009
New Revision: 794802

URL: http://svn.apache.org/viewvc?rev=794802&view=rev
Log:
fix for FELIX-1366

Modified:
    felix/trunk/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/model/util/JavaHelper.java

Modified: felix/trunk/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/model/util/JavaHelper.java
URL: http://svn.apache.org/viewvc/felix/trunk/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/model/util/JavaHelper.java?rev=794802&r1=794801&r2=794802&view=diff
==============================================================================
--- felix/trunk/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/model/util/JavaHelper.java
(original)
+++ felix/trunk/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/model/util/JavaHelper.java
Thu Jul 16 19:38:07 2009
@@ -464,16 +464,18 @@
 
 				for (String cp : classpath) {
 					IPath p = ".".equals(cp) ? path : cache.append(cp);
-					IPath source = bundle.getSourcePathLocation();
-
-					if (source != null && !source.toFile().exists()) {
-						source = null;
+					if ( p.toFile().exists() ) {
+						IPath source = bundle.getSourcePathLocation();
+	
+						if (source != null && !source.toFile().exists()) {
+							source = null;
+						}
+	
+						IClasspathEntry e = JavaCore.newLibraryEntry(p, source,
+								bundle.getSourceRootPath(), rules, attributes,
+								exported);
+						entries.add(e);
 					}
-
-					IClasspathEntry e = JavaCore.newLibraryEntry(p, source,
-							bundle.getSourceRootPath(), rules, attributes,
-							exported);
-					entries.add(e);
 				}
 
 				return entries;



Mime
View raw message