Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 364085

Summary: Resolve error for platform dependent fragments.
Product: z_Archived Reporter: Thomas F <dancer_79>
Component: BuckminsterAssignee: buckminster.core-inbox <buckminster.core-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: henrik.lindberg, thomas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
bug and env description for reproduction
none
error log containing the build result
none
source code of siplified test project none

Description Thomas F CLA 2011-11-17 16:19:41 EST
Build Identifier: buckminster headless_1.4.0.v20110915-1108

Buckminster seems no to resolve plugin fragments included in features for platforms other than those the buckminster instance is running on. The import command
seems to resolve the plugins. But the build command seems not (see warning). If the site.p2 action needs the plugin for repository build, the above warning results in an error.
See attached error log.
The problem is simplified for reproduction using plugins without any functionality.

Reproducible: Always

Steps to Reproduce:
1. build headless out of jenkins using buckminster blugin
1.1 checkout the project (see attached code) into ${WORKSPACE}/testproj
1.2 create buckminster action
     import '${WORKSPACE}/testproj/my.test.site/site.cquery'
     build -c -D target.os=* -D target.ws=* -D target.arch=*
     perform -D target.os=win32 -D target.ws=* -D target.arch=* my.test.site#site.p2
     perform -D target.os=win32 -D target.ws=win32 -D target.arch=x86 -D tprepo='file:///C:/workspace/serviceTargetPlatform/repo' my.test.site#create.product.zip
1.3 run job
Comment 1 Thomas F CLA 2011-11-17 16:20:28 EST
Created attachment 207182 [details]
bug and env description for reproduction
Comment 2 Thomas F CLA 2011-11-17 16:21:04 EST
Created attachment 207183 [details]
error log containing the build result
Comment 3 Thomas Hallgren CLA 2011-11-17 16:23:47 EST
Seems to me you don't pass the -D target.os=* -D target.ws=* -D target.arch=* to the import command. Do you have them declared as properties in your cquery?
Comment 4 Thomas F CLA 2011-11-17 16:25:04 EST
Created attachment 207184 [details]
source code of siplified test project
Comment 5 Thomas F CLA 2011-11-17 16:42:35 EST
O.K. great that was it... sorry for the bug.
Unfortunately i didn't found any hint that the platform has to be given at import time already (maybe should be added to definitive guide next time). Over 300 views on eclipse forum thread didn't bring answer as well...
Comment 6 Henrik Lindberg CLA 2011-11-17 19:40:35 EST
(In reply to comment #5)
> O.K. great that was it... sorry for the bug.
> Unfortunately i didn't found any hint that the platform has to be given at
> import time already (maybe should be added to definitive guide next time). Over
> 300 views on eclipse forum thread didn't bring answer as well...

I would be grateful if you could log an enhancement request for the documentation with a reference to where in the documentation you would like to see something added. (Where did you try to find relevant information for what you were doing).