1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

dx fix for Windows.

This commit is contained in:
Cedric Beust 2015-11-05 17:35:31 -08:00
parent 1b27baf05f
commit e1122bb8e3

View file

@ -198,7 +198,8 @@ public class AndroidPlugin @Inject constructor(val javaCompiler: JavaCompiler) :
// Call dx to generate classes.dex
//
val buildToolsDir = buildToolsVersion(project)
val dx = "${androidHome(project)}/build-tools/$buildToolsDir/dx"
val dx = "${androidHome(project)}/build-tools/$buildToolsDir/dx" +
if (OperatingSystem.current().isWindows()) ".bat" else ""
val buildDir = context.pluginProperties.get("java", JvmCompilerPlugin.BUILD_DIR)
val libsDir = (context.pluginProperties.get("packaging", PackagingPlugin.LIBS_DIR) as File).path
File(libsDir.toString()).mkdirs()