Bug 158050 - [xdoclet] Would like public API to determine if project has webdoclet enabled for the deployment descriptor
Summary: [xdoclet] Would like public API to determine if project has webdoclet enabled...
Status: NEW
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: jst.j2ee CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2006-09-20 14:59 EDT by Larry Isaacs CLA
Modified: 2008-09-04 10:10 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Larry Isaacs CLA 2006-09-20 14:59:48 EDT
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.
Comment 1 Naci Dai CLA 2006-09-21 00:27:27 EDT
Isn't listing project facets and looking for xdoclet sufficient?
Comment 2 Larry Isaacs CLA 2006-09-21 08:46:15 EDT
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.
Comment 3 Kaloyan Raev CLA 2008-09-01 12:02:22 EDT
Assigning to Kaloyan for evaluation
Comment 4 Kaloyan Raev CLA 2008-09-04 10:10:45 EDT
We don't have plans improving XDoclet support for WTP 3.1.