Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » "J2EE Module dependencies"
"J2EE Module dependencies" [message #208515] Tue, 12 February 2008 03:12 Go to next message
Raster Mising name is currently offline Raster Mising name
Messages: 75
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 00:16 Go to previous messageGo to next message
Raster Mising name is currently offline Raster Mising name
Messages: 75
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 09:47 Go to previous message
Rob Frost is currently offline Rob Frost
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 18 06:47:05 EDT 2014

Powered by FUDForum. Page generated in 0.03130 seconds