Fix unit tests
This commit is contained in:
1 file changed
-4
@@ -263,13 +263,9 @@ public final class FileCollector implements AutoCloseable {
|
||||
|
||||
/**
|
||||
* Return the textfile's display name.
|
||||
* test only
|
||||
*/
|
||||
static String getDisplayNameLegacy(Path file, List<String> relativizeRoots) {
|
||||
String fileName = file.toString();
|
||||
if ("jar".equals(file.toUri().getScheme())) {
|
||||
fileName = URI.create(file.toUri().getSchemeSpecificPart()).getPath();
|
||||
}
|
||||
for (String root : relativizeRoots) {
|
||||
if (file.startsWith(root)) {
|
||||
if (fileName.startsWith(File.separator, root.length())) {
|
||||
|
||||
Reference in new issue
Block a user