You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2019/12/03 08:27:59 UTC
[lucene-solr] branch gradle-master updated: Correct helpAnt
location and add a check to verify this in the future.
This is an automated email from the ASF dual-hosted git repository.
dweiss pushed a commit to branch gradle-master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/gradle-master by this push:
new 27f4b02 Correct helpAnt location and add a check to verify this in the future.
27f4b02 is described below
commit 27f4b02ab4991814f7f0786c5f0b73b213d70cee
Author: Dawid Weiss <dw...@apache.org>
AuthorDate: Tue Dec 3 09:27:52 2019 +0100
Correct helpAnt location and add a check to verify this in the future.
---
gradle/help.gradle | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/gradle/help.gradle b/gradle/help.gradle
index 01fce34..441d666 100644
--- a/gradle/help.gradle
+++ b/gradle/help.gradle
@@ -3,7 +3,7 @@
configure(rootProject) {
def helpFiles = [
["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."],
]
@@ -22,9 +22,21 @@ configure(rootProject) {
println ""
println "This is an experimental Lucene/Solr gradle build. See some"
println "guidelines, ant-equivalent commands etc. under help/*; or type:"
- helpFiles.each { entry ->
- println " gradlew :help${entry[0]} # ${entry[2]}"
+ helpFiles.each { section, path, sectionInfo ->
+ 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
}