This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 229329 - Package name of registration service generated by toolkit incorrect
Summary: Package name of registration service generated by toolkit incorrect
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Cosmos (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: David Whiteman CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-29 10:25 EDT by Hubert Leung CLA
Modified: 2012-01-03 13:45 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hubert Leung CLA 2008-04-29 10:25:25 EDT
If I choose to create both query and registration service, and set the package name to a.b.c, only the query service class is created under the package name I supplied.  The registration service class is created under com.myCompany.
Comment 1 David Whiteman CLA 2008-04-29 11:36:49 EDT
Thanks for catching, Hubert.  It's nice to have other people using the toolkit, so it can be correct and usable.

I'll fix this, and introduce a case in the JUnit to handle this situation.  I think my JUnit only checks the package is respected for the query service case currently.
Comment 2 David Whiteman CLA 2008-05-06 11:46:36 EDT
The problem was that we had setup the wizard page for the query service facet only.  If you enable the wizard page for the registration service facet as well, you end up with 2 copies of the same page.  If you don't, then the config contains default values.

The workaround for this that I came up with was to store a .metadata file in the generated project containing the MDR name and package name.   This file gets created when the query service facet is installed.  When the registration service facet is later installed, the file is read, and the config is updated to match the values for the query service facet.  This ensures there is only one wizard page, and the two services are installed in the same package and share the same prefix.

Hubert, please confirm after the next build that the fix works well for you.
Comment 3 David Whiteman CLA 2008-11-05 14:57:53 EST
closing to cleanup bugzilla