groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remko Popma <remko.po...@gmail.com>
Subject Re: About simplifying the switch for runtime groovydoc
Date Sun, 28 Oct 2018 13:17:02 GMT
Daniel, 

Question: how do I consume the groovydoc string at runtime in the application? 
For example, I would like to do something like this:

——
/**@
 * Encrypts a file. 
 */
class Encrypt {
   static void main(String... args) {
        def cli = new CliBuilder()
        def descr = // how to get the groovydoc string??
        cli.usageMessage.description(descr)
        //...
    }
}
——


> On Oct 28, 2018, at 19:45, Daniel.Sun <sunlan@apache.org> wrote:
> 
> Hi  Guillaume,
> 
>> it's still possible to change the syntax at this time without any harm.
> 
> Here is the PR to complete the change:
> https://github.com/apache/groovy/pull/817
> 
> Cheers,
> Daniel.Sun
> 
> 
> 
> 
> -----
> Daniel Sun 
> Apache Groovy committer 
> Blog: http://blog.sunlan.me 
> Twitter: @daniel_sun 
> 
> --
> Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Mime
View raw message