Bug 126774 - Remove CreateModuleCommand
Summary: Remove CreateModuleCommand
Status: CLOSED FIXED
Alias: None
Product: WTP Webservices
Classification: WebTools
Component: jst.ws (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Seng Phung Lu CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2006-02-07 13:54 EST by Rupam Kuehner CLA
Modified: 2008-04-28 20:58 EDT (History)
3 users (show)

See Also:


Attachments
jst.ws.tests and jst.ws.tests.performance patch (41.13 KB, patch)
2008-03-13 16:54 EDT, Seng Phung Lu CLA
bjorn.freeman-benson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rupam Kuehner CLA 2006-02-07 13:54:51 EST
I'm opening this bug to make sure we don't lose track of the need to remove org.eclipse.jst.ws.internal.consumption.command.common.CreateModuleCommand.
This command has been replaced by org.eclipse.jst.ws.internal.consumption.command.common.CreateFacetedProjectCommand
but we have been maintaining CreateModuleCommand to make the transition to facets easier. 

In the WTP Web services code, CreateModuleCommand is used by org.eclipse.jst.ws.internal.consumption.ui.widgets.test.wssample.AddModuleDependenciesCommand to create an EAR project and Web project for the sample when needed. It is also used by org.eclipse.jst.ws.internal.consumption.ui.widgets.test.CreateSampleProjectCommand but CreateSampleProjectCommand is not used anywhere so this should also be removed.
Comment 1 Yen Lu CLA 2006-02-07 15:06:46 EST
Since you're creating this command now, I would like to have the ability to set
the runtime target based on an existing runtime id. A scenario where this becomes important is if you have multiple servers of the same type. Previously, CreateModuleCommand would end up picking the first runtime type which may not be the desired choice and there was no way to influence this.
Comment 2 Rupam Kuehner CLA 2006-02-08 17:56:03 EST
Yen,

CreatedFacetedProjectCommand (like CreateModuleCommand) is internal and so should not be used by clients/extenders of the WTP platform. As far as I know, there are no plans to make this command API. 

Regarding the ability to choose a specific server runtime (in addition to a specific server instance and/or server type), I think this is really something that belongs on the IWebService/IWebServiceClient API, the same way we currently have a service instance id and a server type id on WebServiceInfo and WebServiceClientInfo. If you would like this added to the API, please open an enhancement separate from this bug.

Thanks.
Rupam
Comment 3 Kathy Chan CLA 2008-02-19 17:18:05 EST
Hi Kelvin/Yen, 

I understand that your extension is still using the CreateModuleCommand, please use the CreateFacetedProjectCommand instead.  Please let me know when you have moved off CreateModuleCommand so that we could delete it from WTP.

Seng,

I'm assigning this over to you since the only places CreateModuleCommand is used is in the org.eclipse.jst.ws.tests.performance and org.eclipse.jst.ws.tests command.  Please use the CreateFacetedProjectCommand instead.
Comment 4 Seng Phung Lu CLA 2008-03-13 16:54:45 EDT
Created attachment 92513 [details]
jst.ws.tests and jst.ws.tests.performance patch
Comment 5 Kathy Chan CLA 2008-03-25 09:41:35 EDT
Thanks for the patch, Seng.  It has been committed and released to WTP 3.0 as v200803242129.

I'll remove the CreateModuleCommand later on tomorrow.
Comment 6 Kathy Chan CLA 2008-03-26 14:56:02 EDT
Patch committed and released to HEAD as v200803261855.
Comment 7 Kathy Chan CLA 2008-03-26 14:56:53 EDT
I've checked with all known adoptors and confirmed that they do not use CreateModuleCommand.  The command has been removed.
Comment 8 David Williams CLA 2008-04-24 00:45:16 EDT
mass change to add 'contributed' keyword based on bugzilla query, please correct if that's not accurate (by marking patches as obsolete and removing the 'contributed' keyword. 
Comment 9 Kathy Chan CLA 2008-04-28 20:58:06 EDT
Closing on behalf of Rupam.