StreamingMarkupBuilder: Refactor closure

2020-05-09 Thread Mike M
The closure for my StreamingMarkupBuilder is very large, so I would like to refactor it into smaller units. What is the recommended way to do this? I came across https://slideguitarist.blogspot.com/2011/09/refactoring-groovy-to-generate-xml.html but hoping there is a more elegant way. This is

Jetty example in Groovy docs

2020-09-13 Thread Mike M
Right at the bottom of the Grape page, there is a Jetty example: https://groovy-lang.org/grape.html#Grape-MoreExamples The example uses Jetty 8.1.19 from 2016. How can the example be adapted to a 2020 version of Jetty? (The packaging of Jetty has changed so not completely trivial). Thanks,

SQL: Bind variables in INSERT statement resulting in extra SELECT statement

2020-08-01 Thread Mike M
A statement such as: String qry = "INSERT INTO Author (firstname, lastname) VALUES ('$name', '$name')" sql.execute qry results in one database roundtrip, as one would expect. Using bind variables such as this: sql.execute "INSERT INTO Author (firstname, lastname) VALUES ($fname, $lname)"

Re: SQL: Bind variables in INSERT statement resulting in extra SELECT statement

2020-08-06 Thread Mike M
at https://issues.apache.org/jira/browse/GROOVY-9676 See attachment to this bug for test details and measurements. From: Mike M Sent: 01 August 2020 08:29 To: users@groovy.apache.org Subject: SQL: Bind variables in INSERT statement resulting in extra SELECT statement

Re: [ANNOUNCE] Groovy 2.4.21, 2.5.14, and 3.0.7 Windows installers released

2020-12-21 Thread Mike M
A novice colleague had trouble installing Groovy in Windows following the instructions here: https://groovy-lang.org/install.html#_installation_on_windows Basically this section links to a non existing page. A link to bintray in this section would be helpful. The Apache Groovy programming