felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsav...@apache.org
Subject svn commit: r796346 - /felix/trunk/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/internal/builders/SigilIncrementalProjectBuilder.java
Date Tue, 21 Jul 2009 15:29:38 GMT
Author: dsavage
Date: Tue Jul 21 15:29:36 2009
New Revision: 796346

URL: http://svn.apache.org/viewvc?rev=796346&view=rev
Log:
patch for FELIX-1390

Modified:
    felix/trunk/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/internal/builders/SigilIncrementalProjectBuilder.java

Modified: felix/trunk/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/internal/builders/SigilIncrementalProjectBuilder.java
URL: http://svn.apache.org/viewvc/felix/trunk/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/internal/builders/SigilIncrementalProjectBuilder.java?rev=796346&r1=796345&r2=796346&view=diff
==============================================================================
--- felix/trunk/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/internal/builders/SigilIncrementalProjectBuilder.java
(original)
+++ felix/trunk/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/internal/builders/SigilIncrementalProjectBuilder.java
Tue Jul 21 15:29:36 2009
@@ -275,11 +275,10 @@
 		case IClasspathEntry.CPE_LIBRARY: {
 			IPath p = cp.getPath();
 			
-			IPath ppath = sigil.getProject().getFullPath();
-			
-			if ( ppath.isPrefixOf(p) ) {
-				p = sigil.getProject().getLocation().append( p.removeFirstSegments(1) );
-			}
+			IProject project = sigil.getProject().getWorkspace().getRoot().getProject(p.segment(0));
+			if ( project.exists() ) {
+				p = project.getLocation().append( p.removeFirstSegments(1) );
+			}				
 			
 			files.add( p.toFile() );
 			break;



Mime
View raw message