回复:How to extract comments (especially the fields comments) from groovy or java (compiled in groovy) code?

2020-07-22 Thread 杨波
Hi Paul, Thanks for your reply. I found SimpleGroovyClassDocAssembler is enlightening. The basic idea is to locate Field Node postion (line,column) and then extract code snippet include comments between target field and previous Node. I will try this method, and Grails compatible with Groovy3

回复:How to extract comments (especially the fields comments) from groovy or java (compiled in groovy) code?

2020-07-22 Thread 杨波
Jiaxin, Thanks, I will check it out. And I also found this related post, https://stackoverflow.com/questions/14354165/how-to-parse-groovy-code. -- 发件人:余佳昕 发送时间:2020年7月23日(星期四) 11:57 收件人:杨波 ; users-groovy 主 题:回复: How to extract

[ANNOUNCE] Groovy 2.4.20, 2.5.13, and 3.0.5 Windows installers released

2020-07-22 Thread Keegan Witt
2.4.20: https://bintray.com/groovy/Distributions/download_file?file_path=groovy-2.4.20.msi 2.5.13: https://bintray.com/groovy/Distributions/download_file?file_path=groovy-2.5.13.msi 3.0.5: https://bintray.com/groovy/Distributions/download_file?file_path=groovy-3.0.5.msi -Keegan

Re: How to extract comments (especially the fields comments) from groovy or java (compiled in groovy) code?

2020-07-22 Thread Paul King
Groovy has a groovydoc command. You could just run that and extract those comments from the resulting output or look at the sourcecode for groovydoc for inspiration. >From Groovy 3, you can extract such comments from the AST. Versions of Grails compatible with Groovy 3 are not too far away.

?????? How to extract comments (especially the fields comments) from groovy or java (compiled in groovy) code?

2020-07-22 Thread ??????
I have written similar software for the company I work for. Java provides an extensible javadoc API. I have not used it on groovy, but I think it should apply. You can check this class to get started: `com.sun.tools.javadoc.Main` Jiaxin ----

Re: [ANNOUNCE] Apache Groovy 2.5.13 released

2020-07-22 Thread Guillaume Laforge
Great news! On Wed, Jul 22, 2020 at 6:28 AM Paul King wrote: > > Dear community, > > The Apache Groovy team is pleased to announce version 2.5.13 of Apache > Groovy. > Apache Groovy is a multi-faceted programming language for the JVM. > Further details can be found at the