"J2EE Module dependencies" [message #208515] |
Tue, 12 February 2008 03:12  |
Eclipse User |
|
|
|
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 #208899 is a reply to message #208626] |
Thu, 21 February 2008 09:47  |
Eclipse User |
|
|
|
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.
>
|
|
|
Powered by
FUDForum. Page generated in 0.03558 seconds