mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Better error message if aapt fails.
This commit is contained in:
parent
ba7c673b71
commit
09af1c4c44
1 changed files with 7 additions and 1 deletions
|
@ -126,7 +126,13 @@ public class AndroidPlugin @Inject constructor(val javaCompiler: JavaCompiler)
|
|||
directory = cwd
|
||||
}
|
||||
|
||||
fun call(args: List<String>) = run(arrayListOf(aaptCommand) + args)
|
||||
fun call(args: List<String>) = run(arrayListOf(aaptCommand) + args,
|
||||
errorCallback = { output ->
|
||||
error("Error running $aaptCommand:")
|
||||
output.forEach {
|
||||
error(" $it")
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
private fun generateR(project: Project, generated: Path, aapt: String, resDir: String) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue