Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » "J2EE Module dependencies"
"J2EE Module dependencies" [message #208515] Tue, 12 February 2008 08:12 Go to next message
Raster R is currently offline Raster RFriend
Messages: 77
Registered: July 2009
Member
Hi,

How can I configure "J2EE Module dependencies" for a dynamic web project
using an API call from a plugin? What API?

R
Re: "J2EE Module dependencies" [message #208626 is a reply to message #208515] Fri, 15 February 2008 05:16 Go to previous messageGo to next message
Raster R is currently offline Raster RFriend
Messages: 77
Registered: July 2009
Member
In case any one is interested. I was able to do this by setting the
attribute to the classpath entry for the maven container.
Re: "J2EE Module dependencies" [message #208899 is a reply to message #208626] Thu, 21 February 2008 14:47 Go to previous message
Rob Frost is currently offline Rob FrostFriend
Messages: 64
Registered: July 2009
Member
There is an API that supports the classpath entry publish/export attribute:
org.eclipse.jst.j2ee.classpathdep.UpdateClasspathAttributeUt il (the
addDependencyAttribute() and removeDependencyAttribute() methods are the
most directly relevant). See
http://wiki.eclipse.org/ClasspathEntriesPublishExportSupport for more
information about this classpath entry publish/export support.

For other dependency types (i.e. those encoded in the MANIFEST.MF classpath
or the component file, e.g. EAR-to-module project dependencies, module
project-to-module project dependencies, etc.), DataModel operations exist
that you can execute. Look at the following DataModelProvider classes and
their uses in the WTP code base to get started:
Add/RemoveComponentToEnterpriseApplicationDataModelProvider,
Create/RemoveReferenceComponentsDataModelProvider,
UpdateManifestDataModelProvider

Hope this helps,

Rob

"Raster" <crscca@yahoo.co.in> wrote in message
news:1eb5bb0a54871cbb6e065ef9d9efbece$1@www.eclipse.org...
> In case any one is interested. I was able to do this by setting the
> attribute to the classpath entry for the maven container.
>
Previous Topic:native library in a web project
Next Topic:Replacing org.eclipse.jst.servlet.ui.project.facet.WebFacetInstallPage
Goto Forum:
  


Current Time: Fri Apr 19 01:59:31 GMT 2024

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

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

Back to the top