Re: Need to get help: Building Groovy 1.7.5 from source gives encoding error for ReadLineTest.groovy

2018-02-07 Thread Ken Lam
Dear Jochen, More info I found from MANIFEST.MF: I found that the official groovy-all-1.7.5.jar distributed in grails 1.3.5 was built with JDK 1.7.0-ea (Sun Microsystems Inc.). I guess the "ea" means early access version. So I don't believe I could ever use the exactly same JDK to compile

Re: Need to get help: Building Groovy 1.7.5 from source gives encoding error for ReadLineTest.groovy

2018-02-07 Thread Ken Lam
Dear Jochen, Also, after compiling the groovy-all-1.7.5.jar, I extracted the jar, and extracted the official jar distributed in grails 1.3.5, and compare between the two extracted folders. Out of 3371 files, 256 files (254 binary files + 2 text files) are different, and the rest are

Re: Need to get help: Building Groovy 1.7.5 from source gives encoding error for ReadLineTest.groovy

2018-02-07 Thread Jochen Theodorou
On 07.02.2018 07:12, Ken Lam wrote: Dear Jochen, Then why do I have to set encoding="utf-8" in groovyc commands in the build.xml to force it to UTF-8, If no encoding is set, the system encoding is used and that could be for example GB2312 or Big5 or even only ASCII while the official

Re: Executing Groovy DSL scripts concurrently

2018-02-07 Thread Daniel Sun
Hi Adithyan, How about caching the class instance and reuse it? Here are some scratch code for your reference: ``` static LRUCache lruCache = new LRUCache(100); def dslSrc = ''' your DSL source code ''' def md5 = md5(dslSrc) def resultClass =

Executing Groovy DSL scripts concurrently

2018-02-07 Thread K Adithyan (tech)
Team, Our application is a Root Cause Analysis Computation Engine for Telecom networks. We have been implementing the logics in java only so far. We are now planning to write DSLs for each feature and write the logics using the DSL. We have implemented a framework for plugging in any number of