mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-27 00:38:11 -07:00
Handle ABI changes better.
This commit is contained in:
parent
1c4afba7c1
commit
d388291427
1 changed files with 8 additions and 7 deletions
|
@ -120,14 +120,15 @@ private class Main @Inject constructor(
|
||||||
try {
|
try {
|
||||||
allProjects = buildFileCompilerFactory.create(listOf(buildFile)).compileBuildFiles(args)
|
allProjects = buildFileCompilerFactory.create(listOf(buildFile)).compileBuildFiles(args)
|
||||||
} catch(ex: Throwable) {
|
} catch(ex: Throwable) {
|
||||||
error("Couldn't build", ex.cause ?: ex)
|
// This can happen if the ABI for the build script file changed. Try to wipe .kobalt.
|
||||||
log(2, "Couldn't parse preBuildScript.jar: ${ex.message}")
|
log(2, "Couldn't parse preBuildScript.jar: ${ex.message}")
|
||||||
// if (! File(".kobalt").deleteRecursively()) {
|
if (! File(".kobalt").deleteRecursively()) {
|
||||||
// warn("Couldn't delete .kobalt, please delete it manually")
|
warn("Couldn't delete the .kobalt directory, please delete it manually and try again")
|
||||||
// } else {
|
return 1
|
||||||
// log(1, "Deleted .kobalt")
|
} else {
|
||||||
// allProjects = buildFileCompilerFactory.create(listOf(buildFile)).compileBuildFiles(args)
|
log(1, "Deleted .kobalt")
|
||||||
// }
|
allProjects = buildFileCompilerFactory.create(listOf(buildFile)).compileBuildFiles(args)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (args.tasks) {
|
if (args.tasks) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue