Display absolute path name for getName() and toString() in stand-alone file resources.
This commit is contained in:
parent
7c9e4b0fa5
commit
d3e5eaca9d
1 changed files with 2 additions and 1 deletions
|
@ -34,7 +34,8 @@ public class FileResource implements Resource {
|
|||
this.file = file;
|
||||
|
||||
if (repository == null) {
|
||||
name = shortName = file.getName();
|
||||
name = file.getAbsolutePath();
|
||||
shortName = file.getName();
|
||||
} else {
|
||||
this.repository = repository;
|
||||
name = repository.getName() + "/" + file.getName();
|
||||
|
|
Loading…
Add table
Reference in a new issue