commit | 77272fde7ac8f981340a7e3b9c78bf41ed8ecfa2 | [log] [tgz] |
---|---|---|
author | David Morgan Spenser Savage <dsavage@apache.org> | Tue Jul 21 15:29:36 2009 +0000 |
committer | David Morgan Spenser Savage <dsavage@apache.org> | Tue Jul 21 15:29:36 2009 +0000 |
tree | 64e5c00d1ba4d67cfadec3374c7ac09cec8cc8bd | |
parent | 373a57d8c50f05e872ed874a0f5e42d99cb7a35c [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;