1
0
Fork 0
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:
Mikhail Sennikovsky 2007-03-16 09:27:30 +00:00
parent c224cc8341
commit db758116da
2 changed files with 5 additions and 1 deletions

View file

@ -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();

View file

@ -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;
}