1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 09:46:02 +02:00

use the canonical path when creating code readers so that the name

in the code reader matches the file on disk  (makes a difference on
non-case-sensitive OSs)
This commit is contained in:
Andrew Niefer 2004-10-06 20:39:12 +00:00
parent d029959807
commit 73d595ea0e

View file

@ -32,7 +32,10 @@ public class InternalParserUtil extends ParserFactory {
if (includeFile.exists() && includeFile.isFile()) if (includeFile.exists() && includeFile.isFile())
{ {
try { try {
return new CodeReader(finalPath); //use the canonical path so that in case of non-case-sensitive OSs
//the CodeReader always has the same name as the file on disk with
//no differences in case.
return new CodeReader(includeFile.getCanonicalPath());
} catch (IOException e) { } catch (IOException e) {
} }
} }