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

Bug 321588

Summary: Headless Builder allow extending the build environment from the command line
Product: [Tools] CDT Reporter: James Blackburn <jamesblackburn+eclipse>
Component: cdt-buildAssignee: James Blackburn <jamesblackburn+eclipse>
Status: RESOLVED FIXED QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: normal    
Priority: P3    
Version: 7.0   
Target Milestone: 8.0   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch 1 jamesblackburn+eclipse: iplog-

Description James Blackburn CLA 2010-08-03 09:04:36 EDT
The HeadlessBuilder supports extending the set of -Is, -Ds and -includes (bug 310819).  
We need to be able to extend the environment variables from the command line when running a headlessbuild. This would be a useful enhancement as we use the environment to control the toolchain versions.
Patch to come.
Comment 1 James Blackburn CLA 2010-08-23 10:22:50 EDT
Created attachment 177224 [details]
patch 1

This patch adds the ability to override / prepend / append or remove environment variables for the scope of a headless build.

It does this by adding a small amount of internal 'api' to UserDefinedEnvironmentSupplier to allow the HeadlessBuilder to specify these overrides for the context of a single build.
Changes are localised and JavaDoc'd
Comment 2 James Blackburn CLA 2010-08-23 10:43:29 EDT
Committed to HEAD.