akhikhl / wuff

Gradle plugin for automating assembly of OSGi/Eclipse bundles and applications
MIT License
152 stars 51 forks source link

Wrong extension point generation in plugin.xml #95

Closed petarov closed 6 years ago

petarov commented 9 years ago

Hi,

I've got a weird behavior that I think comes down to this line in EclipseBundlePluginXmlBuilder. I have a java class named ViewLogin that has a completely different purpose than being an Eclipse extension point, however, after building my project I get the following in the plugin.xml file:

  <extension point="org.eclipse.ui.views">
    <view id="com.mycompany.ViewLogin" n
    ame="com.mycompany ViewLogin" 
    class="com.mycompany.ui.ViewLogin"/>
  </extension>

I will patch it in my own fork, but I was wondering what is the idea behind this extension point generation? Could it be removed in the future?

muenzpraeger commented 9 years ago

The extension point generation is part of the built-in auto-detection of "View" classes that conform to the following specification.

'*/View.groovy', '*/_View.java', '_/View.groovy', '/View.java'

See also here: https://github.com/akhikhl/wuff/wiki/plugin.xml-for-eclipse-bundle