From commits-return-111545-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Tue Dec 3 08:28:01 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 9276F18065B for ; Tue, 3 Dec 2019 09:28:01 +0100 (CET) Received: (qmail 92706 invoked by uid 500); 3 Dec 2019 08:28:00 -0000 Mailing-List: contact commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list commits@lucene.apache.org Received: (qmail 92696 invoked by uid 99); 3 Dec 2019 08:28:00 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Dec 2019 08:28:00 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 08B688D809; Tue, 3 Dec 2019 08:27:59 +0000 (UTC) Date: Tue, 03 Dec 2019 08:27:59 +0000 To: "commits@lucene.apache.org" Subject: [lucene-solr] branch gradle-master updated: Correct helpAnt location and add a check to verify this in the future. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <157536167960.27100.7125572951928069142@gitbox.apache.org> From: dweiss@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: lucene-solr X-Git-Refname: refs/heads/gradle-master X-Git-Reftype: branch X-Git-Oldrev: 5459a7938f235af2717cf89f1453b6ba25788ac5 X-Git-Newrev: 27f4b02ab4991814f7f0786c5f0b73b213d70cee X-Git-Rev: 27f4b02ab4991814f7f0786c5f0b73b213d70cee X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated 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 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 }