| 
| Adding a Runtime Classpath to a project when a nonWeb facet is installed... [message #151499] | Mon, 12 December 2005 15:16 |  | 
| Eclipse User  |  |  |  |  | Originally posted by: rnaranjo1.NOSPAM.earthlink.net 
 I added the following to my plugin.xml so that I could state that this
 runtime's classpath should be added to my project's classpath if my facet
 gets installed.
 <extension
 
 point="org.eclipse.wst.common.project.facet.core.runtimes">
 
 <supported>
 
 <runtime-component
 
 id="org.eclipse.jst.server.tomcat"
 
 version="5.0"/>
 
 <facet
 
 id="MyFacet.id"
 
 version="1.0"/>
 
 </supported>
 
 </extension>
 
 However, the code in
 org.eclipse.jst.server.core.internal.RuntimeClassPathProvide r.getClassPathEn
 tries(final IProjectFacetVersion fv) method
 seems to interfere with this definition since it only allows the
 classpathentry to be added if the facet is one of these types:
 
 if (WEB_FACET.equals(pf) || EJB_FACET.equals(pf) || EAR_FACET.equals(pf) ||
 UTILITY_FACET.equals(pf) || CONNECTOR_FACET.equals(pf) ||
 APP_CLIENT_FACET.equals(pf)) {
 String s = rc.getProperty(RuntimeBridge.CLASSPATH);
 if (s == null || s.length() == 0)
 return null;
 
 IClasspathEntry cpentry = JavaCore.newContainerEntry(new Path(s));
 return Collections.singletonList(cpentry);
 }
 
 Can anyone help with this?  I don't understand the purpose of the above
 extension point if the code is implemented as in the above method.
 
 --
 Thanks,
 Rosa
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.03435 seconds