mirror of https://github.com/apache/lucene.git
LUCENE-9333: lazily evaluate for 'docroot' property
This commit is contained in:
parent
b7c60e53eb
commit
10d1ecb431
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue