Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Adding a Runtime Classpath to a project when a nonWeb facet is installed...
Adding a Runtime Classpath to a project when a nonWeb facet is installed... [message #151499] Mon, 12 December 2005 20:16
Eclipse UserFriend
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
Previous Topic:Publishing problems with RC1 & RC2
Next Topic:JSEditor
Goto Forum:
  


Current Time: Fri Apr 19 15:04:34 GMT 2024

Powered by FUDForum. Page generated in 0.01841 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top