Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Headless build fails to fine imported package.
Headless build fails to fine imported package. [message #332654] Mon, 03 November 2008 20:52 Go to next message
Bryan Hunt is currently offline Bryan HuntFriend
Messages: 366
Registered: July 2009
Senior Member
I have a product that builds fine when I export it via the product
export wizard. When I build that same product using the headless
build, I get a compile error that an imported package can't be found.
The package depencency is specified by using import package instead of
require bundle (and no, I can't switch it to require bundle). Any
ideas on how to fix this? Could this be a bug?

Bryan
Re: Headless build fails to fine imported package. [message #332676 is a reply to message #332654] Tue, 04 November 2008 16:22 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
Import-Package should work just fine. The problem is likely that the
bundle providing the package is not being considered by the build, or
did not resolve. Make sure the bundle is present in your baseLocation,
or buildDirectory. The build output should contain warnings if some
bundles did not resolve.

-Andrew

Bryan Hunt wrote:
> I have a product that builds fine when I export it via the product
> export wizard. When I build that same product using the headless build,
> I get a compile error that an imported package can't be found. The
> package depencency is specified by using import package instead of
> require bundle (and no, I can't switch it to require bundle). Any ideas
> on how to fix this? Could this be a bug?
>
> Bryan
>
Re: Headless build fails to fine imported package. [message #332677 is a reply to message #332676] Tue, 04 November 2008 16:38 Go to previous message
Bryan Hunt is currently offline Bryan HuntFriend
Messages: 366
Registered: July 2009
Senior Member
The log file shows that the bundle containing the exported package was
built (even before the bundles that depend on it).

Bryan

On 2008-11-04 10:22:21 -0600, Andrew Niefer <aniefer@ca.ibm.com> said:

> Import-Package should work just fine. The problem is likely that the
> bundle providing the package is not being considered by the build, or
> did not resolve. Make sure the bundle is present in your baseLocation,
> or buildDirectory. The build output should contain warnings if some
> bundles did not resolve.
>
> -Andrew
>
> Bryan Hunt wrote:
>> I have a product that builds fine when I export it via the product
>> export wizard. When I build that same product using the headless
>> build, I get a compile error that an imported package can't be found.
>> The package depencency is specified by using import package instead of
>> require bundle (and no, I can't switch it to require bundle). Any
>> ideas on how to fix this? Could this be a bug?
>>
>> Bryan
Previous Topic:Access restriction problem when using Java 6
Next Topic:How to implement a MessageDialog
Goto Forum:
  


Current Time: Mon Sep 23 02:06:33 GMT 2024

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

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

Back to the top