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

Bug 334271

Summary: importtargetdefinition doesn't complete in time when running from a .script file
Product: z_Archived Reporter: Stef bolton <stefan.bolton>
Component: BuckminsterAssignee: buckminster.core-inbox <buckminster.core-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: stefan.bolton
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Stef bolton CLA 2011-01-13 10:50:02 EST
Build Identifier: 20100917-0705

Running the following commands on the commandline works: -

    buckminster -data buckminster.workspace importtargetdefinition -A feature.target
    buckminster -data buckminster.workspace import feature.cquery

However, having them run from a script file causes the message "Resetting target platform Buckminster Default TP" to be output and our build then fails.

This appears to be a timing issue where the target definition hasn't finished materialising before the cquery is materialised.

I can work around this, by importing the target definition twice - this seems to give it enough time to resolve before the cquery is materialised.


Reproducible: Always

Steps to Reproduce:
1. As detailed above. Run a .script file with an importtargetdefinition command immediately followed by an import command - causes the error.
2. Run the two commands manually and the tp import works correctly.
Comment 1 Stef bolton CLA 2011-01-14 04:00:47 EST
I should mention this wasn't occurring until a fourth installation site was added to the feature.target file.