Community
Participate
Working Groups
SAS Institute, Inc. has plug-ins that implement a wizard which makes use of WebArtifactEdit to make changes to a web project's web.xml. We would like to display an error message and prevent completion of the wizard if we know our changes are going to be overwritten by XDoclet. The user can always shoot themselves in the foot by enabling XDoclet and overwriting web.xml at some point in the future. But, if XDoclet is already enabled and they are taking aim while in our wizard, we would like to let them know what is going to happen. In the wizard, we can detect if the project contains the XDoclet facet, but don't have any public API that I have found to determine if the "Deployment Descriptor" task in "webdoclet" is enabled. This can be achieved now using XDocletPreferenceStore, but this isn't public API at the moment.
Isn't listing project facets and looking for xdoclet sufficient?
Hi Naci, I tried a test case where in the project properties for XDoclet, the WebLogic and Websphere tasks for "webdoclet" were enabled, but not the "Deployment Descriptor" task. In this case, our wizard should work normally since web.xml isn't going to be affected by XDoclet, even though the XDoclet facet will be present in the project.
Assigning to Kaloyan for evaluation
We don't have plans improving XDoclet support for WTP 3.1.