Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321588 - Headless Builder allow extending the build environment from the command line
Summary: Headless Builder allow extending the build environment from the command line
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 7.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 8.0   Edit
Assignee: James Blackburn CLA
QA Contact: Andrew Gvozdev CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-03 09:04 EDT by James Blackburn CLA
Modified: 2010-08-23 11:23 EDT (History)
0 users

See Also:


Attachments
patch 1 (13.66 KB, patch)
2010-08-23 10:22 EDT, James Blackburn CLA
jamesblackburn+eclipse: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.