If your target application sits in a directory referenced by a symbolic link, e.g.
/home -> /lfs/raid1-0/home
and you try to make a new SourceFile object, then call Sourcefile.getFilename(), you'll get an empty string.
This is because Sourcefile.getFilename() (line 90 on) uses substringafter to strip the working directory from the filename, but the working directory will get resolved to the absolute path rather than the logical path. The symbolic link means these don't match, so substringafter returns an empty string.
Can probably be resolved by changing the calls the getAbsolutePath(); or possibly doing something less weird than substringafter().
If your target application sits in a directory referenced by a symbolic link, e.g. /home -> /lfs/raid1-0/home
and you try to make a new SourceFile object, then call Sourcefile.getFilename(), you'll get an empty string.
This is because Sourcefile.getFilename() (line 90 on) uses substringafter to strip the working directory from the filename, but the working directory will get resolved to the absolute path rather than the logical path. The symbolic link means these don't match, so substringafter returns an empty string.
Can probably be resolved by changing the calls the getAbsolutePath(); or possibly doing something less weird than substringafter().