mirror of https://github.com/apache/lucene.git
LUCENE-9278: move declaration calling getTemporaryDir inside the execution block closure so that gradlew clean renderJavadoc doesn't wipe out the temporary directory before the task has a chance to run.
This commit is contained in:
parent
8c1f9815db
commit
fea1ce0062
|
@ -51,10 +51,9 @@ allprojects {
|
|||
|
||||
def javadocCmd = org.gradle.internal.jvm.Jvm.current().getJavadocExecutable()
|
||||
|
||||
def optionsFile = file("${getTemporaryDir()}/javadoc-options.txt")
|
||||
|
||||
doFirst {
|
||||
def srcDirs = sourceSets.main.java.srcDirs.findAll { dir -> dir.exists() }
|
||||
def optionsFile = file("${getTemporaryDir()}/javadoc-options.txt")
|
||||
|
||||
def opts = []
|
||||
opts += [ "-overview ${file("src/java/overview.html").toString()}" ]
|
||||
|
|
Loading…
Reference in New Issue