mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
bug 345750: convert relative paths to absolute also for those that don't
exist
This commit is contained in:
parent
d5d717128b
commit
fa5965cef0
1 changed files with 4 additions and 0 deletions
|
@ -422,6 +422,10 @@ public class CCommandDSC {
|
||||||
IPath ppath = new Path(path);
|
IPath ppath = new Path(path);
|
||||||
if (project != null && !ppath.isAbsolute()) {
|
if (project != null && !ppath.isAbsolute()) {
|
||||||
IResource res = project.findMember(ppath);
|
IResource res = project.findMember(ppath);
|
||||||
|
if (res == null) {
|
||||||
|
// To calculate path only; this does not create any file
|
||||||
|
res = project.getFile(path);
|
||||||
|
}
|
||||||
if (res != null) {
|
if (res != null) {
|
||||||
ppath = res.getLocation();
|
ppath = res.getLocation();
|
||||||
if (ppath != null) {
|
if (ppath != null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue