Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

Use -D or -P to set solrGuideVersion.

Dawid Weiss01e97dbd1623
diff --git a/solr/solr-ref-guide/build.gradle b/solr/solr-ref-guide/build.gradle
index ac48516cb38..3567d88c2e3 100644
--- a/solr/solr-ref-guide/build.gradle
+++ b/solr/solr-ref-guide/build.gradle
@@ -125,9 +125,7 @@ ext {
solrDocsVersion = "${version}".replaceAll(/^(\d+\.\d+)(|\..*)$/, "\$1")
solrDocsVersionPath = "${solrDocsVersion}".replaceAll(/^(\d+)\.(\d+)$/, "\$1_\$2_0")
- if (!project.hasProperty("solrGuideVersion")) {
- solrGuideVersion = "${solrDocsVersion}-DRAFT"
- }
+ solrGuideVersion = propertyOrDefault("solrGuideVersion", "${solrDocsVersion}-DRAFT")
solrRootPath = '../../../../solr/'
solrGuideDraftStatus = solrGuideVersion.matches(/^\d+\.\d+(|\.\d+)$/) ? "" : "DRAFT"