From ca27a131ca3158b44d69f68557070f8558522621 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Wed, 15 Mar 2017 11:38:41 -0700 Subject: [PATCH] Build file fix. --- kobalt/src/Build.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kobalt/src/Build.kt b/kobalt/src/Build.kt index 168a9cea..ad08b98d 100644 --- a/kobalt/src/Build.kt +++ b/kobalt/src/Build.kt @@ -239,7 +239,7 @@ fun taskCopyVersionForWrapper(project: Project) : TaskResult { val from = Paths.get("src/main/resources/kobalt.properties") val to = Paths.get("$toString/kobalt.properties") // Only copy if necessary so we don't break incremental compilation - if (from.toFile().readLines() != to.toFile().readLines()) { + if (! to.toFile().exists() || (from.toFile().readLines() != to.toFile().readLines())) { Files.copy(from, to, StandardCopyOption.REPLACE_EXISTING)