mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 10:16:03 +02:00
In case the custom builder does not have the build path specified, use the one from the configuration builder
This commit is contained in:
parent
c224cc8341
commit
db758116da
2 changed files with 5 additions and 1 deletions
|
@ -1585,7 +1585,7 @@ public class Builder extends BuildObject implements IBuilder, IMatchKeyProvider
|
|||
return new Path(command);
|
||||
}
|
||||
|
||||
private String getBuildPathAttribute(){
|
||||
public String getBuildPathAttribute(){
|
||||
if(buildPath == null){
|
||||
if(superClass != null){
|
||||
return ((Builder)superClass).getBuildPathAttribute();
|
||||
|
|
|
@ -278,6 +278,10 @@ public class BuilderFactory {
|
|||
args.put(IBuilder.ID, ManagedBuildManager.calculateChildId(cfg.getId(), null));
|
||||
MapStorageElement el = new BuildArgsStorageElement(args, null);
|
||||
Builder builder = new Builder(tCh, el, ManagedBuildManager.getVersion().toString());
|
||||
if(builder.getBuildPathAttribute() == null){
|
||||
//set the build path from the cfg settings
|
||||
builder.setBuildPath(cfg.getEditableBuilder().getBuildPath());
|
||||
}
|
||||
return builder;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue