koden8 / quasar-groovy

Groovy implementation with Quasar support
Apache License 2.0
6 stars 1 forks source link

Without Building Groovy #1

Open sirinath opened 9 years ago

sirinath commented 9 years ago

Looking to see if you can achieve the same without having to build groovy. May be through instrumentation of some other form. Also up and coming 2.4 compatibility.

koden8 commented 9 years ago

I made a mistake in the description of the assembly process. Build original groovy from source is not necessary. When building the quasar-groovy we use already builded original Groovy jar, we only just repack it using pre InstrumentedTask and replacing two original class GroovyClassLoader and DefaultGroovyStaticMethods.

May be through instrumentation of some other form

you can always use the Java Agent for instrumenting your code on the fly. See http://docs.paralleluniverse.co/quasar/#instrumentation But for this you have to add to your project files suspendable-supers and suspendables. But this approach I do not like - do not always have the opportunity to use Java Agent.