Re: Running groovy programs

2022-03-08 Thread Andriy Rysin
to/scripts /path/to/scripts/TagText.groovy On Fri, Mar 4, 2022 at 7:04 AM Jochen Theodorou wrote: > On 12.02.22 17:03, Andriy Rysin wrote: > > Hi all > > > > I have a question about running/packaging groovy programs. > > I have a small suite of (commandline) NLP t

Re: Running groovy programs

2022-03-18 Thread Andriy Rysin
This approach may work well for simple file include but if I have packages (and import statements, which is inevitable if program grows) it does not compile. Andriy On Wed, Mar 9, 2022 at 4:47 AM Jochen Theodorou wrote: > On 08.03.22 19:08, Andriy Rysin wrote: > > So it looks like gro

Re: Running groovy programs

2022-03-21 Thread Andriy Rysin
, Andriy On Fri, Mar 18, 2022 at 12:46 PM Jochen Theodorou wrote: > On 18.03.22 15:32, Andriy Rysin wrote: > > This approach may work well for simple file include but if I have > > packages (and import statements, which is inevitable if program grows) > > it does not compil

Re: Running groovy programs

2022-03-23 Thread Andriy Rysin
iy On Mon, Mar 21, 2022 at 3:41 PM Jochen Theodorou wrote: > On 21.03.22 15:26, Andriy Rysin wrote: > > Ah, sorry I didn't get it at first. Technically if we need extra wrapper > > to start a program I could probably do a shell/bat scripts. I was hoping > > we could use the s

Memory leak with closures

2023-02-04 Thread Andriy Rysin
I am hitting some out of memory errors when using closures while similar code with lambdas in java works ok https://issues.apache.org/jira/browse/GROOVY-10918%E2%80%A6 I'm not sure how quickly it gets addressed so I was looking for a workaround and I couldn't find anything quickly. Wrapping

Re: Why is my global variable not visible to my function?

2023-08-10 Thread Andriy Rysin
The variables at the top are not global (they are local to the script main function). You can make them visible to the functions with @Field annotation Regards Andriy On Thu, Aug 10, 2023, 6:30 PM James McMahon wrote: > Hello. I am trying to use a variable I define globally in a function that

Re: Running groovy programs

2024-04-03 Thread Andriy Rysin
add an option, that is then changing the compiler configuration > and a transform could react to that to add a path to the classpath > (package corrected of course) This is certainly possible. > > bye Jochen > > > On 23.03.22 16:37, Andriy Rysin wrote: > > I wonder if the 'groo