Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How do I get J2EE Deployment Assembly settings from within a plugin(How do I get J2EE Deployment Assembly settings from within a plugin)
How do I get J2EE Deployment Assembly settings from within a plugin [message #1017196] Mon, 11 March 2013 03:41
Adam Hawks is currently offline Adam Hawks
Messages: 1
Registered: March 2013
Location: Charlotte NC
Junior Member
I'm writing a plugin for the Helios release that uses EMF to generate an xml file with details about all the workspace projects which are J2EE.
With the result being a dependency list with details for our build folks.

I'm having trouble finding the right docs/source that will give me the equivalent information for the following.

Jars in classpath of application server runtime used by project.

EAR project:
project->preferences->Deployment Assembly
1) source
2) deploy path

EJB project:
project->preferences->Deployment Assembly->Manifest Entries
1) Manifest Entry
2) Source

Web project:
project->preferences->Deployment Assembly->Manifest Entries
1) Manifest Entry
2) Source
project->preferences->Deployment Assembly->Deployment Assembly
3) Source
4) Deploy path

Connector/JCA project: (not sure what I'm looking for on this type project)
project->preferences->Deployment Assembly->Manifest Entries
1) Manifest Entry
2) Source

Utility project:
project->preferences->Java Build Path->Projects
1) Required projects on the build path
project->preferences->Java Build Path->Libraries
2) Jars and class folders on the build path


For the utility project i'm currently using a deprecated function so I'm not even sure that its the right one.
ResourceUtils.getJavaClasspath(project);

For the EAR/EJB/Web/Connector i'm trying to use the following
IModelProvider provider = ModelProviderManager.getModelProvider(project);
Application app = (Application) provider.getModelObject();
EJBJar ejbJar = (EJBJar) provider.getModelObject();
WebModule webModule = (WebModule) provider.getModelObject();

But without much success.

Any help would be appreciated.
Previous Topic:Glassfish Tools and Runtime Offline Installation
Next Topic:JBoss Server jboss-4.2.2.GA taking too long to start from Indigo
Goto Forum:
  


Current Time: Fri Oct 24 10:21:47 GMT 2014

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

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