mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
collect() returns a list of File.
This commit is contained in:
parent
f93fee2d8c
commit
59d6120412
1 changed files with 1 additions and 2 deletions
|
@ -133,9 +133,8 @@ open class Project(
|
||||||
* Can be used for example as `collect(compileDependencies)`.
|
* Can be used for example as `collect(compileDependencies)`.
|
||||||
*/
|
*/
|
||||||
@Directive
|
@Directive
|
||||||
fun collect(dependencies: List<IClasspathDependency>) : List<String> {
|
fun collect(dependencies: List<IClasspathDependency>) : List<File> {
|
||||||
return Kobalt.context?.dependencyManager?.transitiveClosure(dependencies)?.map { it.jarFile.get() }
|
return Kobalt.context?.dependencyManager?.transitiveClosure(dependencies)?.map { it.jarFile.get() }
|
||||||
?.map { it.absolutePath}
|
|
||||||
?: emptyList()
|
?: emptyList()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue