[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Plugin export problem. Please help![urgent]

Much like the plugin.xml, the developer is responsible for maintaining the
build.properties file.  The developer is the only one who knows what he
wants to package in his plug-in.

The initial content of the build.properties file is generated by PDE
during the plug-in project creation operation and its content is based on
what you entered in the wizard.  After that, you have to maintain it
yourself.  For your convenience, you can update the build properties in
the same editor as the plugin.xml (i.e. the Build tab of the manifest
editor).

I could not see under any circumstance how PDE would generate a key
called: Plugin.jar = 

This key must have been added manually.

Wassim.

Roman D wrote:

> Thank you!

> You pointed right, the problem is build.properties.
> Eclipse seem to create/update build.properties incorrectly and you need
> to edit it yourself manually. And there is no meinton of this problem
> anywhere.
> In my case the line was emply, like;
> Plugin.jar =

> And value seem to be filled by Eclipse only in rare cases, I noticed
> only right after you create new plugin. Then if you edit your plugin
> configuration it gets erased.

> This should be reported as eclipse bug probably.


> Mike Evans wrote:

> > Is this your own build.xml or are you using the Export wizard?
> > 
> > If you are trying to call the PDE export ant task yourself I have never 
> > had any luck with this and always have to resort to using the Export 
> > Wizard.
> > 
> > If you are using the Export Wizard my best suggestion is to check the 
> > build.properties file and ensure that its 'source.XXX' exactly matches 
> > <library name="XXX .. in the plugin.xml.
> > 
> > e.g : one of my plugin build.properties:
> > 
> > source.incremental-epic-admin.jar = src/ << THAT JAR
> > output.incremental-epic-admin.jar = bin/
> > bin.includes = plugin.xml,
> >                incremental-epic-admin.jar,
> >                icons/,
> >                schema/,
> >                plugin.properties
> > 
> > & the corresponding plugin.xml:
> > 
> > <?xml version="1.0" encoding="UTF-8"?>
> > <?eclipse version="3.0"?>
> > <plugin
> >    id="com.eu.incremental.epic.admin"
> >    name="%plugin.pluginName"
> >    version="0.1.0"
> >    provider-name="%plugin.providerName"
> >    class="com.eu.incremental.epic.admin.plugin.AdminPlugin">
> > 
> >    <runtime>
> >       <library name="incremental-epic-admin.jar">  << MATCHES THAT JAR
> >          <export name="*"/>
> >       </library>
> >    </runtime>
> >    ...
> > 
> > Mike E.
> > Roman D wrote:
> > 
> >>
> >> I have two plugins. Runnig them as "runtime workbench" works fine.
> >> When I try to export them as "plugins and fragments" I always get an 
> >> error:
> >>
> >> /Plugin/build.xml:48: srcdir attribute must be set!
> >>
> >> Exporting doesn't work at all. no output files created.
> >>
> >> Project properties are set correctly source directories are correct.
> >> I tried diffrent source / binary directory settings in project 
> >> properties.
> >> Tried diffrent build settings in plugin.xml & build.properties.
> >> Therea are no other errors or dependency problems.
> >> Running as "runtime workbench" always work fine.
> >> Tried eclipse 3.0.1, 3.1M2
> >>
> >> I don't know what to do else. please help!
> >>
> >> Thanks.
> > 
> >