Bug 1707719 - Avoid `groovy.lang.MissingMethodException ... getFileNames()`. r=geckoview-reviewers,agi

The exact error is
```
groovy.lang.MissingMethodException: No signature of method: groovy.util.FileNameFinder.getFileNames() is applicable for argument types: (File, String)
```

Differential Revision: https://phabricator.services.mozilla.com/D140689
This commit is contained in:
Nick Alexander 2022-03-10 03:27:05 +00:00
Родитель 13de2f98de
Коммит 41f65544f9
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -64,7 +64,7 @@ def getLlvmBinFolder() {
// and return its parent directory. // and return its parent directory.
return project return project
.file(new FileNameFinder() .file(new FileNameFinder()
.getFileNames(ndkDirectory, "toolchains/llvm/prebuilt/**/bin/llvm-*") .getFileNames(ndkDirectory.toString(), "toolchains/llvm/prebuilt/**/bin/llvm-*")
.first()) .first())
.parentFile .parentFile
} }