Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Compile errors only when building update site?
Compile errors only when building update site? [message #289678] Tue, 09 August 2005 21:13 Go to next message
Robert M. Fuhrer is currently offline Robert M. FuhrerFriend
Messages: 294
Registered: July 2009
Senior Member
I've got a pair of plug-ins that I want to distribute via an update site.

I've created a feature project that includes these two plug-ins, and an update
site project that includes this feature. Both feature and update projects were
created using the PDE wizards.

The feature builds without errors if I use the build.xml that is created by
right-clicking on the feature.xml and invoking "PDE Tools" => "Create Ant Build
File". Both plugin projects compile cleanly and execute properly under a run-
time workbench.

If I invoke "PDE Tools" => "Build Site" from the update site.xml's context
menu, I get compile-time errors (not merely warnings) in both plug-in projects
that don't occur when building normally. Most errors refer to unresolved
imports for critical things like org.eclipse.core, which is definitely in both
projects' plug-in dependency lists. I've also run "Update Classpath" on both
projects.

I'm running Eclipse 3.1, though the two plug-in projects were created under
Eclipse 3.0. [Perhaps that's the problem?]

Please CC me by email on responses.

Thanks!

--
Robert M. Fuhrer rfuhrer@watson.ibm.com
IBM T.J. Watson Research Center PGP public key available on request
Re: Compile errors only when building update site? [message #289941 is a reply to message #289678] Mon, 15 August 2005 14:49 Go to previous message
Robert M. Fuhrer is currently offline Robert M. FuhrerFriend
Messages: 294
Registered: July 2009
Senior Member
To answer my own post, and after some digging, the main problem is that the PDE
in 3.1 generates a badly broken Ant build script for plug-ins that depend on
plug-ins that have "linked content". Specifically, the classpath in the
generated build.xml claims that the jar files for the linked content plug-ins
resides within those plug-ins' project folders.

For example, if plug-in com.foo depends on org.eclipse.core.resources, and
org.eclipse.core.resources was imported as "binary with linked content",
invoking "Create Ant Build File" on com.foo produces an Ant script with
classpath entries like this:

<classpath>
<pathelement path="../org.eclipse.core.runtime/eclipse-
3.1/plugins/org.eclipse.core.runtime_3.1.0.jar"/>
<pathelement path="../org.eclipse.core.runtime/org.eclipse.core.runtime_
3.1.0.jar"/>
...
</classpath>

Here's the relevant Bugzilla entry:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=101966

In article <MPG.1d62e66ffcbf953e989696@news.eclipse.org>,
rfuhrer@watson.ibm.com says...
> I've got a pair of plug-ins that I want to distribute via an update site.
>
> I've created a feature project that includes these two plug-ins, and an update
> site project that includes this feature. Both feature and update projects were
> created using the PDE wizards.
>
> The feature builds without errors if I use the build.xml that is created by
> right-clicking on the feature.xml and invoking "PDE Tools" => "Create Ant Build
> File". Both plugin projects compile cleanly and execute properly under a run-
> time workbench.
>
> If I invoke "PDE Tools" => "Build Site" from the update site.xml's context
> menu, I get compile-time errors (not merely warnings) in both plug-in projects
> that don't occur when building normally. Most errors refer to unresolved
> imports for critical things like org.eclipse.core, which is definitely in both
> projects' plug-in dependency lists. I've also run "Update Classpath" on both
> projects.
>
> I'm running Eclipse 3.1, though the two plug-in projects were created under
> Eclipse 3.0. [Perhaps that's the problem?]

--
Robert M. Fuhrer rfuhrer@watson.ibm.com
IBM T.J. Watson Research Center PGP public key available on request
Previous Topic:How to delete an MultiPageEditor
Next Topic:Delete from explorer AND editor window
Goto Forum:
  


Current Time: Wed Apr 24 16:05:17 GMT 2024

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

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

Back to the top