groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alain Stalder <astal...@span.ch>
Subject [ANN] Grengine 1.2 (extended Grape support)
Date Sat, 04 Mar 2017 08:07:55 GMT
@Grab('ch.grengine:grengine:1.2.0')

* New/Fix: Extended support for Grape with Grengine and an easy-to-use
   workaround for GROOVY-7407 that can also be used independently when
   only using the Groovy JDK.

Note that even if you are not using Grengine and run into concurrency
issues with Grape, https://issues.apache.org/jira/browse/GROOVY-7407,
you might want to use the more convenient way of wrapping the
GrapeEngine in the Grape.class:

   Grengine.Grape.activate()

or

   Grengine.Grape.activate(lockOfMyChoice)

and

   Grengine.Grape.deactivate()

If you are using Grengine and want to use Grape in the scripts,
for example instead of

   File dir = ...
   Grengine gren = new Grengine(dir)

do

   File dir = ...
   Grengine.Grape.activate()
   Grengine gren = Grengine.Grape.newGrengine(dir)

See the user manual in the section "Grengine and Grape" for more details
and how and why things work:

   https://www.grengine.ch/manual.html#grengine-and-grape

Alain


Mime
View raw message