mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Merge pull request #37 from cy6erGn0m/build-task-failing
Create directory before copy file in taskCopyVersionForWrapper
This commit is contained in:
commit
3a9ca294e4
1 changed files with 1 additions and 0 deletions
|
@ -131,6 +131,7 @@ fun readVersion() : String {
|
||||||
@com.beust.kobalt.api.annotation.Task(name = "copyVersionForWrapper", runBefore = arrayOf("compile"), description = "")
|
@com.beust.kobalt.api.annotation.Task(name = "copyVersionForWrapper", runBefore = arrayOf("compile"), description = "")
|
||||||
fun taskCopyVersionForWrapper(project: Project) : TaskResult {
|
fun taskCopyVersionForWrapper(project: Project) : TaskResult {
|
||||||
if (project.name == "kobalt-wrapper") {
|
if (project.name == "kobalt-wrapper") {
|
||||||
|
Files.createDirectories(Paths.get("modules/wrapper/kobaltBuild/classes"))
|
||||||
Files.copy(Paths.get("src/main/resources/kobalt.properties"),
|
Files.copy(Paths.get("src/main/resources/kobalt.properties"),
|
||||||
Paths.get("modules/wrapper/kobaltBuild/classes/kobalt.properties"),
|
Paths.get("modules/wrapper/kobaltBuild/classes/kobalt.properties"),
|
||||||
StandardCopyOption.REPLACE_EXISTING)
|
StandardCopyOption.REPLACE_EXISTING)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue