1
0
Fork 0
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:
Cedric Beust 2015-11-20 21:59:24 -08:00
parent ba7c673b71
commit 09af1c4c44

View file

@ -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) {