Reputation: 3693
Is it possible to add two builders to two different plugins?
My scenario is this. I had a plugin-A that defines nature-A and builder-1 and builder-2, when I created project with this nature, project would get these builders.
Later I introduced another plugin-B that defines nature-B and the same builder-1 and builder-2 as plugin-A. Now when I create project defined by plugin-B, I don't see builder-1 and builder-2 added in .project file. If I remove builders definitions from plugin-A, then project created with plugin-B gets the builders, but not project created with plugin-A.
What is the designer pattern on builder reuse between two plugins?
Upvotes: 0
Views: 35
Reputation: 111217
It is probably best to define another nature and put the builders in that nature.
The other two natures can use the requires-nature
element to specify that they require the nature with the builders.
Upvotes: 1