mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
GH-393: run now runs from the project's directory.
Fixes https://github.com/cbeust/kobalt/issues/393
This commit is contained in:
parent
a50d349fd6
commit
cb7a8a5fb8
2 changed files with 19 additions and 16 deletions
|
@ -93,10 +93,12 @@ class KFiles {
|
|||
*/
|
||||
fun joinDir(vararg ts: String): String = ts.toMutableList().joinToString(File.separator)
|
||||
|
||||
val LIBS_DIR = "libs"
|
||||
|
||||
/**
|
||||
* Where assemblies get generated ("kobaltBuild/libs")
|
||||
*/
|
||||
fun libsDir(project: Project): String = KFiles.makeDir(KFiles.buildDir(project).path, "libs").path
|
||||
fun libsDir(project: Project): String = KFiles.makeDir(KFiles.buildDir(project).path, LIBS_DIR).path
|
||||
|
||||
/**
|
||||
* The paths elements are expected to be a directory. Make that directory and join the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue