Closed Arkaedan closed 1 year ago
Thanks for the PR! I've had a look at the implementation of AbstractFileset.toString()
and replaced return fileset.toString().split(";")
with return fileset.getDirectoryScanner().getIncludedFiles()
in https://github.com/eclipse/epsilon/commit/68f9570fd9a400e54ba6aa98e6fbe6392be01e40, which fixes this issue without having to join/split strings.
I did originally look at doing fileset.getDirectoryScanner().getIncludedFiles()
but noticed that all of the methods inside the AbstractFileset
appear to call dieOnCircularReference()
first and wondered if it would cause issues if we don't call that as well.
Good point. Fixed in https://github.com/eclipse/epsilon/commit/3540ab75343f903cccca39980773b26eedde82d4.
Fixes #16
If the fileset has no files then return an empty array.
The getFiles() method relies on the AbstractFileSet toString() method which will return an empty string if there are no included files. We need to check if there are no files, otherwise this will result in a string array with one element (empty string) even though there are no files.