forked from phoedos/pmd
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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user