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.