1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Add KFiles.libsDir().

This commit is contained in:
Cedric Beust 2016-03-04 23:19:59 +04:00
parent 12f4123fb6
commit 7e45668549

View file

@ -82,6 +82,11 @@ class KFiles {
*/
fun joinDir(vararg ts: String): String = ts.toMutableList().joinToString(File.separator)
/**
* Where assemblies get generated ("kobaltBuild/libs")
*/
fun libsDir(project: Project) = KFiles.makeDir(KFiles.buildDir(project).path, "libs").path
/**
* The paths elements are expected to be a directory. Make that directory and join the
* elements with the file separator.