use canonical form before getting absolute path

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4934 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Xavier Le Vourch
2007-01-11 01:47:51 +00:00
parent b9f84865d3
commit 89bf798e71

View File

@ -44,7 +44,11 @@ public class FileDataSource implements DataSource {
}
}
return file.getAbsolutePath();
try {
return file.getCanonicalFile().getAbsolutePath();
} catch (Exception e) {
return file.getAbsolutePath();
}
}
private String trimAnyPathSep(String name) {