This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
To support verify action, added method: o.n.m.j2ee.deployment.plugins.spi.ConfigurationSupport { void verify(FileObject target); } ConfigurationSupport is a new plugin SPI in NB 4.1, no incompatibility issue with NB 4.0.
To give more context for reviewers: The goal of this API change is to enable calling app server verifier from j2ee module projects (web/project, j2ee/ejbjarproject, j2ee/earproject). This is an optional API, not all servers need to have a verifier but some do. After talking to Nam we decided to change the API to a separate interface: o.n.m.j2ee.deployment.plugins.api.VerificationSupport { void verify(FileObject target); } The implementation will be registered in layer file as other plugin implementation classes. If it is not there the plugin does not support verification. The action to call the verifier will be implemented in the modules that implement j2ee projects. We will provide an ant task nbverify in j2eeserver/ant. The ant task will have one parameter - the location of module archive (the verification runs on archive) and the j2ee module projects are responsible for setting dependency on their respective "dist" targets. The nbverify task will just call the verify method. Modules that implement j2ee projects will be able to test if the verification is supported. For this we will add a new method in org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment: public boolean supportsVerification (String serverId); Nam will attach a diff.
Created attachment 19187 [details] new plugin SPI VeriferSupport
Created attachment 19188 [details] ValidationException.java
Created attachment 19189 [details] J2eeModuleProvider.java diff
implemented, merged to trunk
v