mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
bug 243170: Changes 1.9 undone as it causes regression, i.e. relative paths stop being evaluated from project root
This commit is contained in:
parent
5a61ecb698
commit
8bef66b111
1 changed files with 7 additions and 5 deletions
|
@ -234,17 +234,19 @@ public class DescriptionScannerInfoProvider implements IScannerInfoProvider, ICP
|
|||
if(p == null)
|
||||
continue;
|
||||
//TODO: obtain location from pathEntries when entries are resolved
|
||||
path = new Path(p);//pathEntries[i].getLocation();
|
||||
path = new Path(p);//p.getLocation();
|
||||
if(pathEntry.isValueWorkspacePath()){
|
||||
IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
|
||||
IResource rc = root.findMember(path);
|
||||
if(rc != null){
|
||||
path = rc.getLocation();
|
||||
}
|
||||
}
|
||||
// do not make paths absolute, that's the preprocessor's job and is done differently
|
||||
// depending on the entry
|
||||
if(path != null)
|
||||
} else if (!path.isAbsolute()) {
|
||||
IPath projLocation = fProject != null ? fProject.getLocation() : null;
|
||||
if(projLocation != null)
|
||||
path = projLocation.append(path);
|
||||
}
|
||||
if(path != null)
|
||||
values[num++] = path.toOSString();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue