3.1 M7 plugin project wizard not creating plugin.xml? [message #285650] |
Fri, 20 May 2005 19:28  |
Eclipse User |
|
|
|
Originally posted by: USERjimirwin.DOMAINacm.org
I've probably missed an earlier discussion, but has 3.1 M7 changed the
way the plugin.xml is created? In M6, plugin.xml was created as soon as
I created a plugin project. In M7, plugin.xml is not being created
until I do something like add an extension, and even then the contents
of plugin.xml are unusual.
Here's what I get with M6 as soon as I create a simple plugin project:
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin
id="test.m6.plugin"
name="Plugin Plug-in"
version="1.0.0"
provider-name="Jim"
class="test.m6.plugin.PluginPlugin">
<runtime>
<library name="plugin.jar"/>
</runtime>
<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.core.runtime"/>
</requires>
</plugin>
Here's what M7 creates, and then it only creates it after I add the
extension. It doesn't look healthy to me.
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
<extension
point="org.eclipse.ui.views">
</extension>
</plugin>
|
|
|
Re: 3.1 M7 plugin project wizard not creating plugin.xml? [message #285652 is a reply to message #285650] |
Sat, 21 May 2005 00:42   |
Eclipse User |
|
|
|
This is undoubtedly intentional. The "create OSGi manifest" checkbox is
now on by default. By leaving it that way, and not adding any extensions,
you get a "pure" OSGi bundle (the notion of extension points is an Eclipse
concept). The plug-in manifest editor transparently edits the combination
of plugin.xml, manifest.mf and build.properties.
One thing to watch out for, is that when plugin.xml is created as a result
of adding an extension, it doesn't get checked on the build properties
page, so when you do a feature build, your plug-in doesn't run because
plugin.xml is missing.
Hope this helps
- Richard
jimirwin wrote:
> I've probably missed an earlier discussion, but has 3.1 M7 changed the
> way the plugin.xml is created? In M6, plugin.xml was created as soon as
> I created a plugin project. In M7, plugin.xml is not being created
> until I do something like add an extension, and even then the contents
> of plugin.xml are unusual.
> Here's what I get with M6 as soon as I create a simple plugin project:
> <?xml version="1.0" encoding="UTF-8"?>
> <?eclipse version="3.0"?>
> <plugin
> id="test.m6.plugin"
> name="Plugin Plug-in"
> version="1.0.0"
> provider-name="Jim"
> class="test.m6.plugin.PluginPlugin">
> <runtime>
> <library name="plugin.jar"/>
> </runtime>
> <requires>
> <import plugin="org.eclipse.ui"/>
> <import plugin="org.eclipse.core.runtime"/>
> </requires>
> </plugin>
> Here's what M7 creates, and then it only creates it after I add the
> extension. It doesn't look healthy to me.
> <?xml version="1.0" encoding="UTF-8"?>
> <?eclipse version="3.0"?>
> <plugin>
> <extension
> point="org.eclipse.ui.views">
> </extension>
> </plugin>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03208 seconds