Re: Groovy 2.5 @Macro ?
why this restriction ? I thought this feature was here to e.g. simply support logging of the form "$variableExpression.name=$variableExpression.value", etc:
-------- Ursprüngliche Nachricht --------
Von: Paul King <paulk@xxxxxxxxxxxx>
Datum: 27.05.18 01:50 (GMT+01:00)
Betreff: Re: Groovy 2.5 @Macro ?
Your best bet is to have the macro class and META-INF/services file under src/main and your usage under src/test.
If you want to do it all in one file, you can create a temp directory, stuff the META-INF/services file in it, add that directory
to the classpath dynamically and then run your code using the macro with a new GroovyShell().