Thank you Maarten, delegation strategies looks promising. I'll give it a go.
Regards,
Per
On Wed, 21 May 2025 at 11:18, Maarten Boekhold wrote:
> Hi Per,
>
> Getting back to your original question: have you looked at the closure
> delegation strategy?
>
> https://groovy-lang.org/closures.html#_
We all have our favorites! :-) Mine is maven. Its structure works very well for
me.
__
Tommy Svensson
to...@natusoft.se
On 21 May 2025 at 09:55 +0200, Per Nyfelt , wrote:
> Gradle is great and I use it for most of my projects (and I've written some
> gradle plugins). However,
Hi Per,
Getting back to your original question: have you looked at the closure
delegation strategy?
https://groovy-lang.org/closures.html#_delegation_strategy
Unless I misunderstood your problem, I think this might help you to
'delegate' property and method access to a MarkupBuilder instance
Gradle is great and I use it for most of my projects (and I've written some
gradle plugins). However, Gradle is slowly moving towards a declarative
style and I quite like the imperative style of Ant. It's just that
AntBuilder is a bit too imperative as a build system. However, when
extending it, ad
Hi again Per,
Have you seen Gradle ? I believe that Gradle might provide what you are trying
to do. Personally I'm not a Gradle fan, but many are.
Tommy Svensson
On 20 May 2025 at 10:38 +0200, Per Nyfelt , wrote:
> Thanks Tommy,
> My problem was in the context of a custom ant task. I found that
Thanks Tommy,
My problem was in the context of a custom ant task. I found that if I let
go of the idea of "arbitrary additional content" and defined what the
different additional sections could be, it was quite easy to do. My
solution is here:
https://github.com/Alipsa/uso/blob/main/uso-tasks/src/m
Hello Per,
I don't know of anything existing that does what you want. But, in Groovy you
can easily define structures like JSON or XML (which both give you a structure
but does so using different formats.
Example: Map root = [ "id": "QAZ", "name" : "Nisse", ... ]
This is a java.util.Map struc