handle variable source path FELIX-2586


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@995036 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/model/util/JavaHelper.java b/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/model/util/JavaHelper.java
index e4ac348..b001f38 100644
--- a/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/model/util/JavaHelper.java
+++ b/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/model/util/JavaHelper.java
@@ -451,8 +451,13 @@
                     IPath path = JavaCore.getResolvedVariablePath(e.getPath());
                     if (path != null)
                     {
+                        IPath spath = e.getSourceAttachmentPath();
+                        if (spath != null) {
+                            spath = JavaCore.getResolvedVariablePath(spath);
+                        }
+                        
                         entries.add(JavaCore.newLibraryEntry(path,
-                            e.getSourceAttachmentPath(), e.getSourceAttachmentRootPath(),
+                            spath, e.getSourceAttachmentRootPath(),
                             rules, attributes, export));
                     }
                     break;