Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » [hudson] exported empty packages cause compiler errors
[hudson] exported empty packages cause compiler errors [message #518503] Thu, 04 March 2010 10:19 Go to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
Registered: July 2009
Senior Member
When building a project (RAP) from binary imported p2 site in Hudson, empty packages will cause compiler errors, e.g.:
Error: file C:\hudson\jobs\test-build\workspace\plugins\org.eclipse.rap. jface\META-INF\MANIFEST.MF, line 15: Package 'org.eclipse.jface.bindings.keys' does not exist in this plug-in

Manual builds (PDE) work.
Is there anything I can set (in hudson/buckminster) to ignore this?
Re: [hudson] exported empty packages cause compiler errors [message #518513 is a reply to message #518503] Thu, 04 March 2010 10:34 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Erdal,
I think the error you get here stems from the PDE compiler. You can control the severity of this error and many other
compiler errors using a workspace template. I.e.

1. Start your IDE on a new workspace.
2. Configure the preferences using the normal preferences dialog, i.e. "Window" -> "Preferences" -> "Plug-in
Development" -> "Compilers"
3. Exit the IDE.
4. Create a zip from the workspace root and use this zip as -T <zip file> when you import.

HTH,
- thomas



On 03/04/2010 11:19 AM, Erdal Karaca wrote:
> When building a project (RAP) from binary imported p2 site in Hudson,
> empty packages will cause compiler errors, e.g.:
> Error: file C:\hudson\jobs\test-build\workspace\plugins\org.eclipse.rap.
> jface\META-INF\MANIFEST.MF, line 15: Package
> 'org.eclipse.jface.bindings.keys' does not exist in this plug-in
>
> Manual builds (PDE) work.
> Is there anything I can set (in hudson/buckminster) to ignore this?
Re: [hudson] exported empty packages cause compiler errors [message #518524 is a reply to message #518503] Thu, 04 March 2010 11:41 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
Registered: July 2009
Senior Member
I modified the build job:

import -T http://localhost/development/metadata.zip
import http://localhost/development/app.cquery

It complains:
import '-T' 'http://localhost/development/metadata.zip'

Missing BOM URL

Help text for org.eclipse.buckminster.core.import:This command will populate the workspace from a Bill of Materials (BOM)

The metadata.zip zip archive contains the .metada folder of my newly created workspace...
What am I missing?
Re: [hudson] exported empty packages cause compiler errors [message #518527 is a reply to message #518503] Thu, 04 March 2010 11:54 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
Registered: July 2009
Senior Member
ok, my fault, should be:
import -T http://localhost/development/metadata.zip http://localhost/development/app.cquery

But still complaining:

Doing full workspace refresh

Waiting for jobs to end

Workspace at C:\hudson\jobs\app\workspace is not empty

Finished: FAILURE

Re: [hudson] exported empty packages cause compiler errors [message #518537 is a reply to message #518527] Thu, 04 March 2010 12:07 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Erdal,
Is the workspace originally empty? That's a prerequisite for using a template.

- thomas

On 03/04/2010 12:54 PM, Erdal Karaca wrote:
> ok, my fault, should be:
> import -T http://localhost/development/metadata.zip
> http://localhost/development/app.cquery
>
> But still complaining:
>
> Doing full workspace refresh
>
> Waiting for jobs to end
>
> Workspace at C:\hudson\jobs\app\workspace is not empty
>
> Finished: FAILURE
>
>
Re: [hudson] exported empty packages cause compiler errors [message #518541 is a reply to message #518503] Thu, 04 March 2010 12:29 Go to previous message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
Registered: July 2009
Senior Member
Yes, the workspace is removed, first.
I am using this version:

org.eclipse.buckminster.core_1.1.350.r10861.jar

Do I have to use the latest buckminster?
Re: [hudson] exported empty packages cause compiler errors [message #518549 is a reply to message #518541] Thu, 04 March 2010 08:04 Go to previous message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
On 03/04/2010 01:29 PM, Erdal Karaca wrote:
> Yes, the workspace is removed, first.

Are you issuing any commands prior to the import such as setpref? If you do, that won't work since it first creates a
workspace where it can store the preference.

> I am using this version:
>
> org.eclipse.buckminster.core_1.1.350.r10861.jar
>
> Do I have to use the latest buckminster?

No, there has been a couple of updates since then but none that is relevant to this problem.

- thomas
Previous Topic:My jar files (build through buckminster) do not contain .class files with latest buckminster
Next Topic:Wiki page describing eclipse.org Teneo build setup using Buckminster
Goto Forum:
  


Current Time: Fri Apr 19 21:20:35 GMT 2024

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

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

Back to the top