This is an automated email from the ASF dual-hosted git repository.
asf-ci-deploy pushed a commit to branch asf-site-production
in repository https://gitbox.apache.org/repos/asf/grails-website.git
The following commit(s) were added to refs/heads/asf-site-production by this
push:
new 0fc4df5ab49 Deploying to documentation branch - 13:40:30
0fc4df5ab49 is described below
commit 0fc4df5ab494491d5071583c675b1faf03483383
Author: jamesfredley <[email protected]>
AuthorDate: Thu Feb 19 13:40:33 2026 +0000
Deploying to documentation branch - 13:40:30
---
.../GrailsApplicationContextCommandRunner.html | 27 +++++++++++++++++++++-
docs/snapshot/api/index-all.html | 3 +++
.../developer-manual/gettingStarted.html | 2 +-
.../grails-data/developer-manual/introduction.html | 2 +-
.../grails-data/developer-manual/stepByStep.html | 2 +-
.../grails-data/developer-manual/testing.html | 2 +-
.../developer-manual/understandingApi.html | 2 +-
.../understandingApi/datastoreBasics.html | 2 +-
.../understandingApi/gormApis.html | 2 +-
.../understandingApi/gormEnhancer.html | 2 +-
.../understandingApi/implementingCrud.html | 2 +-
.../understandingApi/implementingQueries.html | 2 +-
.../understandingApi/secondaryIndexes.html | 2 +-
.../grails-data/whats-new-manual/index.html | 2 +-
14 files changed, 41 insertions(+), 13 deletions(-)
diff --git
a/docs/snapshot/api/grails/ui/command/GrailsApplicationContextCommandRunner.html
b/docs/snapshot/api/grails/ui/command/GrailsApplicationContextCommandRunner.html
index 841903a4188..0edd6e27942 100644
---
a/docs/snapshot/api/grails/ui/command/GrailsApplicationContextCommandRunner.html
+++
b/docs/snapshot/api/grails/ui/command/GrailsApplicationContextCommandRunner.html
@@ -206,12 +206,19 @@ extends <a
href='../../../grails/ui/support/DevelopmentGrailsApplication.html'>D
</tr>
<tr class="altColor">
+ <td class="colFirst"><code></code></td>
+ <td
class="colLast"><code>static java.lang.String[]</code></td>
+ <td class="colLast"><code><strong><a
href="#filterCommandOptions(java.lang.String)">filterCommandOptions</a></strong>(java.lang.String[]
args)</code><br>Filters out command-specific options (arguments starting with
'--') from the
+ args array before they are passed to Spring Boot's
<CODE>SpringApplication.run()</CODE>.</td>
+ </tr>
+
+ <tr class="rowColor">
<td class="colFirst"><code></code></td>
<td
class="colLast"><code>static void</code></td>
<td class="colLast"><code><strong><a
href="#main(java.lang.String)">main</a></strong>(java.lang.String[]
args)</code><br>Main method to run an existing Application class</td>
</tr>
- <tr class="rowColor">
+ <tr class="altColor">
<td class="colFirst"><code></code></td>
<td class="colLast"><code><a
href='../../../org.springframework.context.ConfigurableApplicationContext.html'>ConfigurableApplicationContext</a></code></td>
<td class="colLast"><code><strong><a
href="#run(java.lang.String)">run</a></strong>(java.lang.String[]
args)</code><br></td>
@@ -307,6 +314,24 @@ extends <a
href='../../../grails/ui/support/DevelopmentGrailsApplication.html'>D
</a>
<h3>Method Detail</h3>
+ <a name="filterCommandOptions(java.lang.String)"><!--
--></a>
+ <ul class="blockListLast">
+ <li class="blockList">
+ <h4>static java.lang.String[]
<strong>filterCommandOptions</strong>(java.lang.String[] args)</h4>
+ <p> Filters out command-specific options
(arguments starting with '--') from the
+ args array before they are passed to Spring Boot's
<CODE>SpringApplication.run()</CODE>.
+
+ <p>Spring Boot interprets <CODE>--key=value</CODE> arguments as property
overrides via
+ <CODE>CommandLinePropertySource</CODE>. When Grails command options like
+ <CODE>--dataSource=analytics</CODE> are passed through, Spring Boot sets
+ <CODE>dataSource=analytics</CODE> as a top-level property, corrupting GORM's
datasource
+ configuration which expects <CODE>dataSource</CODE> to be a Map containing
url, username, etc.</p>
+
+ <p>Command options are still available to the Grails command via
+ <CODE>CommandLineParser.parse(args)</CODE> which receives the unfiltered
args.</p> <DL><DT><B>Parameters:</B></DT><DD><code>args</code> - the full
argument array including command
options</DD></DL><DL><DT><B>Returns:</B></DT><DD>a filtered array with command
options removed, safe for Spring Boot</DD></DL></p>
+ </li>
+ </ul>
+
<a name="main(java.lang.String)"><!-- --></a>
<ul class="blockListLast">
<li class="blockList">
diff --git a/docs/snapshot/api/index-all.html b/docs/snapshot/api/index-all.html
index 9361de61f4e..2758c12d9ee 100644
--- a/docs/snapshot/api/index-all.html
+++ b/docs/snapshot/api/index-all.html
@@ -12912,6 +12912,9 @@ if (location.href.indexOf('is-external=true') == -1) {
</dt><dd> <div class="block"></div></dd>
<dt><span class="strong"><a
href="org/grails/taglib/TemplateNamespacedTagDispatcher.html#filterBodyAttr(java.lang.Object)"
title="Method in
TemplateNamespacedTagDispatcher">filterBodyAttr(java.lang.Object)</a></span> -
Method in <a
href="org/grails/taglib/TemplateNamespacedTagDispatcher.html">TemplateNamespacedTagDispatcher</a>
</dt><dd> <div class="block"></div></dd>
+<dt><span class="strong"><a
href="grails/ui/command/GrailsApplicationContextCommandRunner.html#filterCommandOptions(java.lang.String)"
title="Method in
GrailsApplicationContextCommandRunner">filterCommandOptions(java.lang.String)</a></span>
- Method in <a
href="grails/ui/command/GrailsApplicationContextCommandRunner.html">GrailsApplicationContextCommandRunner</a>
+</dt><dd> <div class="block">Filters out command-specific options (arguments
starting with '--') from the
+ args array before they are passed to Spring Boot's
<CODE>SpringApplication.run()</CODE>.</div></dd>
<dt><span class="strong"><a
href="grails/spring/BeanBuilder.html#filterGStringReferences(java.lang.Object)"
title="Method in
BeanBuilder">filterGStringReferences(java.lang.Object)</a></span> - Method in
<a href="grails/spring/BeanBuilder.html">BeanBuilder</a>
</dt><dd> <div class="block"></div></dd>
<dt><span class="strong"><a
href="org/grails/web/pages/FilteringCodecsByContentTypeSettings.html"
title="Class in
org.grails.web.pages">FilteringCodecsByContentTypeSettings</a></span> - Class
in <a
href="./org/grails/web/pages/package-summary.html">org.grails.web.pages</a>
diff --git a/docs/snapshot/grails-data/developer-manual/gettingStarted.html
b/docs/snapshot/grails-data/developer-manual/gettingStarted.html
index bed1a4b01f2..ce69dbbf786 100644
--- a/docs/snapshot/grails-data/developer-manual/gettingStarted.html
+++ b/docs/snapshot/grails-data/developer-manual/gettingStarted.html
@@ -523,7 +523,7 @@ cd grails-core</pre>
<div id="footer">
<div id="footer-text">
Version 7.0.8-SNAPSHOT<br>
-Last updated 2026-02-18 20:55:31 UTC
+Last updated 2026-02-19 13:27:18 UTC
</div>
</div>
</body>
diff --git a/docs/snapshot/grails-data/developer-manual/introduction.html
b/docs/snapshot/grails-data/developer-manual/introduction.html
index 7ba38cbe0d5..e7a8d857a61 100644
--- a/docs/snapshot/grails-data/developer-manual/introduction.html
+++ b/docs/snapshot/grails-data/developer-manual/introduction.html
@@ -476,7 +476,7 @@ body.book #toc,body.book #preamble,body.book
h1.sect0,body.book .sect1>h2{page-b
<div id="footer">
<div id="footer-text">
Version 7.0.8-SNAPSHOT<br>
-Last updated 2026-02-18 20:55:31 UTC
+Last updated 2026-02-19 13:27:18 UTC
</div>
</div>
</body>
diff --git a/docs/snapshot/grails-data/developer-manual/stepByStep.html
b/docs/snapshot/grails-data/developer-manual/stepByStep.html
index 2109b7f9890..c886bd26be7 100644
--- a/docs/snapshot/grails-data/developer-manual/stepByStep.html
+++ b/docs/snapshot/grails-data/developer-manual/stepByStep.html
@@ -621,7 +621,7 @@ class XyzTestSuite {
<div id="footer">
<div id="footer-text">
Version 7.0.8-SNAPSHOT<br>
-Last updated 2026-02-18 20:55:31 UTC
+Last updated 2026-02-19 13:27:18 UTC
</div>
</div>
</body>
diff --git a/docs/snapshot/grails-data/developer-manual/testing.html
b/docs/snapshot/grails-data/developer-manual/testing.html
index db9d535bb2c..26f0c8b615b 100644
--- a/docs/snapshot/grails-data/developer-manual/testing.html
+++ b/docs/snapshot/grails-data/developer-manual/testing.html
@@ -511,7 +511,7 @@ class PagedResultSpec extends GormDatastoreSpec{
<div id="footer">
<div id="footer-text">
Version 7.0.8-SNAPSHOT<br>
-Last updated 2026-02-18 20:55:31 UTC
+Last updated 2026-02-19 13:27:18 UTC
</div>
</div>
</body>
diff --git a/docs/snapshot/grails-data/developer-manual/understandingApi.html
b/docs/snapshot/grails-data/developer-manual/understandingApi.html
index 80c7fa1df4c..537e557bc01 100644
--- a/docs/snapshot/grails-data/developer-manual/understandingApi.html
+++ b/docs/snapshot/grails-data/developer-manual/understandingApi.html
@@ -454,7 +454,7 @@ body.book #toc,body.book #preamble,body.book
h1.sect0,body.book .sect1>h2{page-b
<div id="footer">
<div id="footer-text">
Version 7.0.8-SNAPSHOT<br>
-Last updated 2026-02-18 20:55:31 UTC
+Last updated 2026-02-19 13:27:18 UTC
</div>
</div>
</body>
diff --git
a/docs/snapshot/grails-data/developer-manual/understandingApi/datastoreBasics.html
b/docs/snapshot/grails-data/developer-manual/understandingApi/datastoreBasics.html
index 3da502c4f07..a297ee5364d 100644
---
a/docs/snapshot/grails-data/developer-manual/understandingApi/datastoreBasics.html
+++
b/docs/snapshot/grails-data/developer-manual/understandingApi/datastoreBasics.html
@@ -561,7 +561,7 @@ protected Session createSession(PropertyResolver
connDetails) {
<div id="footer">
<div id="footer-text">
Version 7.0.8-SNAPSHOT<br>
-Last updated 2026-02-18 20:55:31 UTC
+Last updated 2026-02-19 13:27:18 UTC
</div>
</div>
</body>
diff --git
a/docs/snapshot/grails-data/developer-manual/understandingApi/gormApis.html
b/docs/snapshot/grails-data/developer-manual/understandingApi/gormApis.html
index 2236bbdeb69..24670fe0a48 100644
--- a/docs/snapshot/grails-data/developer-manual/understandingApi/gormApis.html
+++ b/docs/snapshot/grails-data/developer-manual/understandingApi/gormApis.html
@@ -496,7 +496,7 @@ class Neo4jEntityTraitProvider implements
GormEntityTraitProvider {
<div id="footer">
<div id="footer-text">
Version 7.0.8-SNAPSHOT<br>
-Last updated 2026-02-18 20:55:31 UTC
+Last updated 2026-02-19 13:27:18 UTC
</div>
</div>
</body>
diff --git
a/docs/snapshot/grails-data/developer-manual/understandingApi/gormEnhancer.html
b/docs/snapshot/grails-data/developer-manual/understandingApi/gormEnhancer.html
index e2ff0725cfd..f7d234a7e44 100644
---
a/docs/snapshot/grails-data/developer-manual/understandingApi/gormEnhancer.html
+++
b/docs/snapshot/grails-data/developer-manual/understandingApi/gormEnhancer.html
@@ -488,7 +488,7 @@ enhancer.enhance()</code></pre>
<div id="footer">
<div id="footer-text">
Version 7.0.8-SNAPSHOT<br>
-Last updated 2026-02-18 20:55:31 UTC
+Last updated 2026-02-19 13:27:18 UTC
</div>
</div>
</body>
diff --git
a/docs/snapshot/grails-data/developer-manual/understandingApi/implementingCrud.html
b/docs/snapshot/grails-data/developer-manual/understandingApi/implementingCrud.html
index 87e3175a348..f1e65e4e696 100644
---
a/docs/snapshot/grails-data/developer-manual/understandingApi/implementingCrud.html
+++
b/docs/snapshot/grails-data/developer-manual/understandingApi/implementingCrud.html
@@ -673,7 +673,7 @@ protected void deleteEntry(String family, final Object key,
final Object entry)
<div id="footer">
<div id="footer-text">
Version 7.0.8-SNAPSHOT<br>
-Last updated 2026-02-18 20:55:31 UTC
+Last updated 2026-02-19 13:27:18 UTC
</div>
</div>
</body>
diff --git
a/docs/snapshot/grails-data/developer-manual/understandingApi/implementingQueries.html
b/docs/snapshot/grails-data/developer-manual/understandingApi/implementingQueries.html
index 023dd88bc27..066c9565a3b 100644
---
a/docs/snapshot/grails-data/developer-manual/understandingApi/implementingQueries.html
+++
b/docs/snapshot/grails-data/developer-manual/understandingApi/implementingQueries.html
@@ -588,7 +588,7 @@ If, for instance, the underlying datastore does not support
the calculation of a
<div id="footer">
<div id="footer-text">
Version 7.0.8-SNAPSHOT<br>
-Last updated 2026-02-18 20:55:31 UTC
+Last updated 2026-02-19 13:27:18 UTC
</div>
</div>
</body>
diff --git
a/docs/snapshot/grails-data/developer-manual/understandingApi/secondaryIndexes.html
b/docs/snapshot/grails-data/developer-manual/understandingApi/secondaryIndexes.html
index d8ce6a4a7bf..3d27b5fb5b6 100644
---
a/docs/snapshot/grails-data/developer-manual/understandingApi/secondaryIndexes.html
+++
b/docs/snapshot/grails-data/developer-manual/understandingApi/secondaryIndexes.html
@@ -526,7 +526,7 @@ If the underlying datastore supports secondary indexes then
it is ok to just ret
<div id="footer">
<div id="footer-text">
Version 7.0.8-SNAPSHOT<br>
-Last updated 2026-02-18 20:55:31 UTC
+Last updated 2026-02-19 13:27:18 UTC
</div>
</div>
</body>
diff --git a/docs/snapshot/grails-data/whats-new-manual/index.html
b/docs/snapshot/grails-data/whats-new-manual/index.html
index 763e48ee8be..2b08388d5a0 100644
--- a/docs/snapshot/grails-data/whats-new-manual/index.html
+++ b/docs/snapshot/grails-data/whats-new-manual/index.html
@@ -527,7 +527,7 @@ body.book #toc,body.book #preamble,body.book
h1.sect0,body.book .sect1>h2{page-b
<div id="footer">
<div id="footer-text">
Version 7.0.8-SNAPSHOT<br>
-Last updated 2026-02-18 20:55:31 UTC
+Last updated 2026-02-19 13:27:18 UTC
</div>
</div>
</body>