|
Re: Compile errors only when building update site? [message #289941 is a reply to message #289678] |
Mon, 15 August 2005 14:49 |
Robert M. Fuhrer 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
|
|
|
Powered by
FUDForum. Page generated in 0.03063 seconds