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

Build file fix.

This commit is contained in:
Cedric Beust 2017-03-15 11:38:41 -07:00
parent d01af588cd
commit ca27a131ca

View file

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