LUCENE-9333: lazily evaluate for 'docroot' property

This commit is contained in:
Tomoko Uchida 2020-05-18 23:36:15 +09:00
parent b7c60e53eb
commit 10d1ecb431
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ class ChangesToHtmlTask extends DefaultTask {
File siteDir = project.rootProject.file("lucene/site/changes") File siteDir = project.rootProject.file("lucene/site/changes")
@OutputDirectory @OutputDirectory
File targetDir = project.file("${project.docroot}/changes") Provider<File> targetDir = project.providers.provider { project.file("${project.docroot}/changes") }
@Input @Input
def luceneDocUrl = "${->project.luceneDocUrl}" def luceneDocUrl = "${->project.luceneDocUrl}"
@ -52,7 +52,7 @@ class ChangesToHtmlTask extends DefaultTask {
def result = project.exec { def result = project.exec {
executable "perl" executable "perl"
standardInput changesFile.newInputStream() standardInput changesFile.newInputStream()
standardOutput project.file("${targetDir}/Changes.html").newOutputStream() standardOutput project.file("${targetDir.get()}/Changes.html").newOutputStream()
errorOutput = output errorOutput = output
ignoreExitValue = true ignoreExitValue = true