This is an automated email from the ASF dual-hosted git repository.

houston pushed a commit to branch jira/solr-15556-antora
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/jira/solr-15556-antora by this 
push:
     new 82c7508  Make gradle property check better
82c7508 is described below

commit 82c7508ca979234cedbd4995bbe6419785a10c6e
Author: Houston Putman <[email protected]>
AuthorDate: Tue Feb 1 15:05:21 2022 -0500

    Make gradle property check better
---
 solr/solr-ref-guide/build.gradle | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/solr/solr-ref-guide/build.gradle b/solr/solr-ref-guide/build.gradle
index 7731bfa..415f3b2 100644
--- a/solr/solr-ref-guide/build.gradle
+++ b/solr/solr-ref-guide/build.gradle
@@ -402,7 +402,7 @@ dependencies {
     }
 }
 
-def isLocalGuide = propertyOrEnvOrDefault("refguide.local", "REFGUIDE_LOCAL", 
"true").contains("t")
+def isLocalGuide = propertyOrEnvOrDefault("refguide.local", "REFGUIDE_LOCAL", 
"true").trim().toLowerCase().startsWith("t")
 
 // Documentation for Antora-Gradle plugin at
 // https://gitlab.com/antora/antora-gradle-plugin

Reply via email to