mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-28 19:35:36 +02:00
Bug 531028 - Pass build config to all builders during headless build
Change-Id: Ia802d07e9da88fcb42274633d4321212d5eb6096 Signed-off-by: William Riley <william.riley@renesas.com>
This commit is contained in:
parent
2c82259f95
commit
6a72f4f07c
1 changed files with 8 additions and 1 deletions
|
@ -282,8 +282,15 @@ public class HeadlessBuilder implements IApplication {
|
||||||
if (commands[i].getBuilderName().equals(CommonBuilder.BUILDER_ID)) {
|
if (commands[i].getBuilderName().equals(CommonBuilder.BUILDER_ID)) {
|
||||||
proj.build(buildType, CommonBuilder.BUILDER_ID, map, new SubProgressMonitor(monitor, 1));
|
proj.build(buildType, CommonBuilder.BUILDER_ID, map, new SubProgressMonitor(monitor, 1));
|
||||||
} else {
|
} else {
|
||||||
|
//Combine command args with build args
|
||||||
|
Map<String, String> args = commands[i].getArguments();
|
||||||
|
if(args != null) {
|
||||||
|
args.putAll(map);
|
||||||
|
} else {
|
||||||
|
args = map;
|
||||||
|
}
|
||||||
proj.build(buildType, commands[i].getBuilderName(),
|
proj.build(buildType, commands[i].getBuilderName(),
|
||||||
commands[i].getArguments(), new SubProgressMonitor(monitor, 1));
|
args, new SubProgressMonitor(monitor, 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
monitor.done();
|
monitor.done();
|
||||||
|
|
Loading…
Add table
Reference in a new issue