commit | 48c2e754d0276ac8f4fae4249b94ead3073cc33e | [log] [tgz] |
---|---|---|
author | David Morgan Spencer Savage <dsavage@apache.org> | Tue Jul 21 15:29:36 2009 +0000 |
committer | David Morgan Spencer Savage <dsavage@apache.org> | Tue Jul 21 15:29:36 2009 +0000 |
tree | 64e5c00d1ba4d67cfadec3374c7ac09cec8cc8bd | |
parent | 580d190ae33aff6b7f3e3efbb5cb4a9dcbf9286c [diff] |
patch for FELIX-1390 git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@796346 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/internal/builders/SigilIncrementalProjectBuilder.java b/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/internal/builders/SigilIncrementalProjectBuilder.java index c521e07..d2b2fa9 100644 --- a/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/internal/builders/SigilIncrementalProjectBuilder.java +++ b/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/internal/builders/SigilIncrementalProjectBuilder.java
@@ -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;