mirror of https://github.com/apache/lucene.git
Correct helpAnt location and add a check to verify this in the future.
This commit is contained in:
parent
5459a7938f
commit
27f4b02ab4
|
@ -3,7 +3,7 @@
|
||||||
configure(rootProject) {
|
configure(rootProject) {
|
||||||
def helpFiles = [
|
def helpFiles = [
|
||||||
["Workflow", "help/workflow.txt", "Typical workflow commands."],
|
["Workflow", "help/workflow.txt", "Typical workflow commands."],
|
||||||
["Ant", "help/ant-gradle.txt", "Ant-gradle migration help."],
|
["Ant", "help/ant.txt", "Ant-gradle migration help."],
|
||||||
["Tests", "help/tests.txt", "Tests, filtering, beasting, etc."],
|
["Tests", "help/tests.txt", "Tests, filtering, beasting, etc."],
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -22,9 +22,21 @@ configure(rootProject) {
|
||||||
println ""
|
println ""
|
||||||
println "This is an experimental Lucene/Solr gradle build. See some"
|
println "This is an experimental Lucene/Solr gradle build. See some"
|
||||||
println "guidelines, ant-equivalent commands etc. under help/*; or type:"
|
println "guidelines, ant-equivalent commands etc. under help/*; or type:"
|
||||||
helpFiles.each { entry ->
|
helpFiles.each { section, path, sectionInfo ->
|
||||||
println " gradlew :help${entry[0]} # ${entry[2]}"
|
println " gradlew :help${section} # ${sectionInfo}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task allHelpFilesExit() {
|
||||||
|
doFirst {
|
||||||
|
helpFiles.each { section, path, sectionInfo ->
|
||||||
|
if (!rootProject.file(path).exists()) {
|
||||||
|
throw new GradleException("Help file missing: ${path} (correct help.gradle)")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
check.dependsOn allHelpFilesExit
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue