mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
Fix #93.
This commit is contained in:
parent
949fc353d8
commit
2db5df1897
1 changed files with 65 additions and 57 deletions
|
@ -93,6 +93,7 @@ private class Main @Inject constructor(
|
|||
}
|
||||
}
|
||||
|
||||
if (! args.update) {
|
||||
log(1, if (result != 0) "BUILD FAILED: $result" else "BUILD SUCCESSFUL ($seconds seconds)")
|
||||
|
||||
// Check for new version
|
||||
|
@ -114,6 +115,7 @@ private class Main @Inject constructor(
|
|||
} catch(ex: TimeoutException) {
|
||||
log(2, "Didn't get the new version in time, skipping it")
|
||||
}
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
|
@ -146,6 +148,14 @@ private class Main @Inject constructor(
|
|||
} else if (args.serverMode) {
|
||||
server.run()
|
||||
} else {
|
||||
// Update doesn't require to parse the build file
|
||||
if (args.update) {
|
||||
// --update
|
||||
updateKobalt.updateKobalt()
|
||||
} else {
|
||||
//
|
||||
// Everything below requires to parse the build file first
|
||||
//
|
||||
if (!buildFile.exists()) {
|
||||
error(buildFile.path.toFile().path + " does not exist")
|
||||
} else {
|
||||
|
@ -182,9 +192,6 @@ private class Main @Inject constructor(
|
|||
} else if (args.download) {
|
||||
// -- download
|
||||
updateKobalt.downloadKobalt()
|
||||
} else if (args.update) {
|
||||
// --update
|
||||
updateKobalt.updateKobalt()
|
||||
} else {
|
||||
//
|
||||
// Launch the build
|
||||
|
@ -198,6 +205,7 @@ private class Main @Inject constructor(
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue