From 10d1ecb431c3bd0a0c8995d65db14a1a5bc85094 Mon Sep 17 00:00:00 2001 From: Tomoko Uchida Date: Mon, 18 May 2020 23:36:15 +0900 Subject: [PATCH] LUCENE-9333: lazily evaluate for 'docroot' property --- gradle/documentation/changes-to-html.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle/documentation/changes-to-html.gradle b/gradle/documentation/changes-to-html.gradle index e3a38485838..16e9d216817 100644 --- a/gradle/documentation/changes-to-html.gradle +++ b/gradle/documentation/changes-to-html.gradle @@ -32,7 +32,7 @@ class ChangesToHtmlTask extends DefaultTask { File siteDir = project.rootProject.file("lucene/site/changes") @OutputDirectory - File targetDir = project.file("${project.docroot}/changes") + Provider targetDir = project.providers.provider { project.file("${project.docroot}/changes") } @Input def luceneDocUrl = "${->project.luceneDocUrl}" @@ -52,7 +52,7 @@ class ChangesToHtmlTask extends DefaultTask { def result = project.exec { executable "perl" standardInput changesFile.newInputStream() - standardOutput project.file("${targetDir}/Changes.html").newOutputStream() + standardOutput project.file("${targetDir.get()}/Changes.html").newOutputStream() errorOutput = output ignoreExitValue = true