diff options
author | nitind | 2007-09-03 07:48:48 +0000 |
---|---|---|
committer | nitind | 2007-09-03 07:48:48 +0000 |
commit | 04a604db3190bc832c99e20b68b8eb06cd6f145d (patch) | |
tree | 728e32fa395e173d6415e4c612de179355b4354b /bundles/org.eclipse.jst.jsp.core/src | |
parent | 9c0acd7ed2b305211ed5ab931df699d7df4e85ed (diff) | |
download | webtools.sourceediting-04a604db3190bc832c99e20b68b8eb06cd6f145d.tar.gz webtools.sourceediting-04a604db3190bc832c99e20b68b8eb06cd6f145d.tar.xz webtools.sourceediting-04a604db3190bc832c99e20b68b8eb06cd6f145d.zip |
[199843] Tag libraries in j2ee module projects not found in dependent dynamic web project
Diffstat (limited to 'bundles/org.eclipse.jst.jsp.core/src')
-rw-r--r-- | bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/taglib/ProjectDescription.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/taglib/ProjectDescription.java b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/taglib/ProjectDescription.java index 2aa6d8e682..c4a9a863d8 100644 --- a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/taglib/ProjectDescription.java +++ b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/taglib/ProjectDescription.java @@ -606,6 +606,24 @@ class ProjectDescription { projectsProcessed.add(buildpathProjects[i]); ProjectDescription description = TaglibIndex.getInstance().createDescription(buildpathProjects[i]); description.addBuildPathReferences(references, projectsProcessed, true); + + /* + * 199843 (183756) - JSP Validation Cannot Find Tag Library + * Descriptor in Referenced Projects + * + * Add any TLD records having URI values from projects on the + * build path + */ + Map[] rootReferences = (Map[]) description.fImplicitReferences.values().toArray(new Map[description.fImplicitReferences.size()]); + for (int j = 0; j < rootReferences.length; j++) { + Iterator implicitRecords = rootReferences[j].values().iterator(); + while (implicitRecords.hasNext()) { + ITaglibRecord record = (ITaglibRecord) implicitRecords.next(); + if (record.getRecordType() == ITaglibRecord.TLD && ((ITLDRecord) record).getURI() != null) { + references.put(((ITLDRecord) record).getURI(), record); + } + } + } } } } |