Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » building update site
building update site [message #323168] Wed, 12 December 2007 16:57 Go to next message
Eclipse UserFriend
Originally posted by: hammer.fmi.uni-passau.de

Hi,

I've got a problem when building the update site: I get errors which
are obviously due to the build path, though the plugins build without
problems in eclipse and running them in a runtime workbench works
perfectly. I've set up the plugin build path with the PDE Tools.

Any ideas?
Thanks,
Christian
Re: building update site [message #323173 is a reply to message #323168] Wed, 12 December 2007 21:05 Go to previous messageGo to next message
Alex Le is currently offline Alex LeFriend
Messages: 649
Registered: July 2009
Senior Member
Christian Hammer wrote:
> Hi,
>
> I've got a problem when building the update site: I get errors which are
> obviously due to the build path, though the plugins build without
> problems in eclipse and running them in a runtime workbench works
> perfectly. I've set up the plugin build path with the PDE Tools.
>
> Any ideas?
> Thanks,
> Christian
>
Hi,

You can create an update site project in your workspace, and associate
all features (feature projects) to the update site projects. When you
do an export on the update site project, things will be taken care for
you automatically.
Re: building update site [message #323181 is a reply to message #323173] Thu, 13 December 2007 08:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: aboehlke.vitras.de

> Hi,

> You can create an update site project in your workspace, and associate
> all features (feature projects) to the update site projects. When you
> do an export on the update site project, things will be taken care for
> you automatically.Hello AL,

Thanks for providing this simple solution! There is one little problem:
Eclipse extracts some features and plugins and modifies them (Why?). This
raises the problem, that some of the JARs generated by the Update Site
Builder are not signed correctly, so the features/plugins cannot be
installed!
As a quickfix, I just deleted all ECLIPSE.RSA/ECLIPSE.SF files. But
perhaps, we should tell the Update Site Builder, how to handle this?

Thanks again.

Greetings,
André Böhlke
Re: building update site [message #323182 is a reply to message #323173] Thu, 13 December 2007 09:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hammer.fmi.uni-passau.de

Hi,

Thanks for your proposal, however, the problem arises when I let
eclipse build the update site (and thus the feature and the plugins
within). I get build path errors in the logs.zip that I do not get
during the build process in eclipse. Does the build path differ during
feature building?

Eclipse Version: 3.3.1.1
Build id: M20071023-1652

Thanks,
Christian

On 2007-12-12 22:05:02 +0100, AL <unbonnevie@yahoo.com> said:

> Christian Hammer wrote:
>> Hi,
>>
>> I've got a problem when building the update site: I get errors which
>> are obviously due to the build path, though the plugins build without
>> problems in eclipse and running them in a runtime workbench works
>> perfectly. I've set up the plugin build path with the PDE Tools.
>>
>> Any ideas?
>> Thanks,
>> Christian
>>
> Hi,
>
> You can create an update site project in your workspace, and associate
> all features (feature projects) to the update site projects. When you
> do an export on the update site project, things will be taken care for
> you automatically.
Re: building update site [message #323192 is a reply to message #323182] Thu, 13 December 2007 18:31 Go to previous messageGo to next message
Alex Le is currently offline Alex LeFriend
Messages: 649
Registered: July 2009
Senior Member
Christian Hammer wrote:
> Hi,
>
> Thanks for your proposal, however, the problem arises when I let eclipse
> build the update site (and thus the feature and the plugins within). I
> get build path errors in the logs.zip that I do not get during the build
> process in eclipse. Does the build path differ during feature building?
>
> Eclipse Version: 3.3.1.1
> Build id: M20071023-1652
>
> Thanks,
> Christian
>
> On 2007-12-12 22:05:02 +0100, AL <unbonnevie@yahoo.com> said:
>
>> Christian Hammer wrote:
>>> Hi,
>>>
>>> I've got a problem when building the update site: I get errors which
>>> are obviously due to the build path, though the plugins build without
>>> problems in eclipse and running them in a runtime workbench works
>>> perfectly. I've set up the plugin build path with the PDE Tools.
>>>
>>> Any ideas?
>>> Thanks,
>>> Christian
>>>
>> Hi,
>>
>> You can create an update site project in your workspace, and associate
>> all features (feature projects) to the update site projects. When you
>> do an export on the update site project, things will be taken care for
>> you automatically.
>
>

Can tell what the errors in the logs are? There is a 90% chances that
errors are due to a plugin (in one of your features) that references a
*.jar; that is, that plug-in has an embedded jar file, if you were to
export out that plug-in.

That was my experience in the past, and it was painful. But not impossible.

If that is the case, try first to export out that plug-in itself and
test it by putting it in your eclipse installation "plugins" directory.
If the plug-in works, then you're fine. If not, somewhere in this
newsgroup there is a thread on how to make sure the plug-in manifest
recognizes embedded jar files.
Re: building update site [message #333392 is a reply to message #323192] Tue, 09 December 2008 01:19 Go to previous messageGo to next message
John J. Barton is currently offline John J. BartonFriend
Messages: 311
Registered: July 2009
Senior Member
AL wrote:
> Christian Hammer wrote:
>> Hi,
>>
>> Thanks for your proposal, however, the problem arises when I let
>> eclipse build the update site (and thus the feature and the plugins
>> within). I get build path errors in the logs.zip that I do not get
>> during the build process in eclipse. Does the build path differ during
>> feature building?
>>
>> Eclipse Version: 3.3.1.1
>> Build id: M20071023-1652
>>
>> Thanks,
>> Christian
>>
>> On 2007-12-12 22:05:02 +0100, AL <unbonnevie@yahoo.com> said:
>>
>>> Christian Hammer wrote:
>>>> Hi,
>>>>
>>>> I've got a problem when building the update site: I get errors which
>>>> are obviously due to the build path, though the plugins build
>>>> without problems in eclipse and running them in a runtime workbench
>>>> works perfectly. I've set up the plugin build path with the PDE Tools.
>>>>
>>>> Any ideas?
>>>> Thanks,
>>>> Christian
>>>>
>>> Hi,
>>>
>>> You can create an update site project in your workspace, and
>>> associate all features (feature projects) to the update site
>>> projects. When you do an export on the update site project, things
>>> will be taken care for you automatically.
>>
>>
>
> Can tell what the errors in the logs are? There is a 90% chances that
> errors are due to a plugin (in one of your features) that references a
> *.jar; that is, that plug-in has an embedded jar file, if you were to
> export out that plug-in.

I added an embedded jar file to a plugin and now my site.xml fails to
build.

Ignore this next paragraph and skip down....

The errors in logs.zip are nonsense on so many levels. logs.zip wow??
why compile to build the site at all? how can you have errors if the
plugin builds in the IDE?

>
> That was my experience in the past, and it was painful. But not
> impossible.
>
> If that is the case, try first to export out that plug-in itself and
> test it by putting it in your eclipse installation "plugins" directory.
> If the plug-in works, then you're fine. If not, somewhere in this
> newsgroup there is a thread on how to make sure the plug-in manifest
> recognizes embedded jar files.

What does it mean "export out that plug-in itself"?
Re: building update site [message #333397 is a reply to message #333392] Tue, 09 December 2008 13:02 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

John J Barton wrote:
>
> What does it mean "export out that plug-in itself"?

I think he means select the plugin and use File>Export...>Plug-in
Development>Deployable Plug-ins and Fragments

That will confirm if your bundle has the correct manifest entries and
can be exported.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Re: building update site [message #333405 is a reply to message #333397] Tue, 09 December 2008 19:55 Go to previous messageGo to next message
John J. Barton is currently offline John J. BartonFriend
Messages: 311
Registered: July 2009
Senior Member
Paul Webster wrote:
> John J Barton wrote:
>>
>> What does it mean "export out that plug-in itself"?
>
> I think he means select the plugin and use File>Export...>Plug-in
> Development>Deployable Plug-ins and Fragments
>
> That will confirm if your bundle has the correct manifest entries and
> can be exported.
>
> PW

Thanks Paul. Unfortunately that procedure gives me the same result: a
bizarrely reported error message that I don't know how to fix. The
procedure ends with a popup dialog announcing that a zip file has been
created. Buried in that zip file are error messages about imports that
cannot be resolved. I don't know what the 'export' operation does, what
resources it uses to make its decisions, or why it reports these
problems in this bizarre way.

Presumably the export is compiling the java files again (why? this is an
IDE, its already compiled them). It must be using a class path for this
compile: which one? How is that path altered from the one used by the
IDE and why? How can I tell export (or rather the update site build) to
use the same path as the IDE?

Very confused,
John
Re: building update site [message #333407 is a reply to message #333405] Tue, 09 December 2008 22:03 Go to previous messageGo to next message
John J. Barton is currently offline John J. BartonFriend
Messages: 311
Registered: July 2009
Senior Member
John J Barton wrote:
> Paul Webster wrote:
>> John J Barton wrote:
>>>
>>> What does it mean "export out that plug-in itself"?
>>
>> I think he means select the plugin and use File>Export...>Plug-in
>> Development>Deployable Plug-ins and Fragments
>>
>> That will confirm if your bundle has the correct manifest entries and
>> can be exported.
>>
>> PW
>
> Thanks Paul. Unfortunately that procedure gives me the same result: a
> bizarrely reported error message that I don't know how to fix. The
> procedure ends with a popup dialog announcing that a zip file has been
> created. Buried in that zip file are error messages about imports that
> cannot be resolved. I don't know what the 'export' operation does, what
> resources it uses to make its decisions, or why it reports these
> problems in this bizarre way.
>
> Presumably the export is compiling the java files again (why? this is an
> IDE, its already compiled them). It must be using a class path for this
> compile: which one? How is that path altered from the one used by the
> IDE and why? How can I tell export (or rather the update site build) to
> use the same path as the IDE?
>
> Very confused,
> John

I tracked down my problem to the "Organize Manifests Wizard". That tool
produced a MANIFEST.MF that causes the update site, export, and debug
build launches to fail. Reverting the MANIFEST.MF to a previous version
allows all to succeed.

John.
Re: building update site [message #333497 is a reply to message #333405] Mon, 15 December 2008 19:19 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

John J Barton wrote:
>
> Presumably the export is compiling the java files again (why? this is an
> IDE, its already compiled them). It must be using a class path for this
> compile: which one? How is that path altered from the one used by the
> IDE and why? How can I tell export (or rather the update site build) to
> use the same path as the IDE?
>

I think the way it works is Export uses PDE build to compile the plugin
and generate a jar. PDE build uses the manifest runtime information to
build the classpath, which is different (cleaner) than the Java project
in your dev environment within eclipse. (they're slightly out of sync
because PDE sits on top of JDT and can only manipulate the JDT
environment in certain ways).

It used to be a much simpler JDT compile for export :-) but what that
meant was deployed plugins simply failed to load with weird errors in
the error logs.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Previous Topic:Using scanner and text framework without a widget
Next Topic:Actions and command handlers
Goto Forum:
  


Current Time: Thu Apr 25 10:41:40 GMT 2024

Powered by FUDForum. Page generated in 0.03630 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top