1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +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:
William Riley 2018-02-12 09:18:24 +00:00 committed by Doug Schaefer
parent 2c82259f95
commit 6a72f4f07c

View file

@ -282,8 +282,15 @@ public class HeadlessBuilder implements IApplication {
if (commands[i].getBuilderName().equals(CommonBuilder.BUILDER_ID)) {
proj.build(buildType, CommonBuilder.BUILDER_ID, map, new SubProgressMonitor(monitor, 1));
} 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(),
commands[i].getArguments(), new SubProgressMonitor(monitor, 1));
args, new SubProgressMonitor(monitor, 1));
}
}
monitor.done();