[
https://issues.apache.org/jira/browse/GROOVY-11194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17775756#comment-17775756
]
Jochen Theodorou commented on GROOVY-11194:
-------------------------------------------
Actually I think we are missing quite a bit documentation in that area.
--configscript can be used to pass a comma separated list of config scripts to
the compiler. Those are groovy scripts used to configure the compiler. Sigh...
I think one of the best references would be
https://blog.mrhaki.com/2016/01/groovy-goodness-customising-groovy.html We
really really miss doccumentation here! Anyway... the script is basically a
normal groovy script which has "configuration" as the current compiler
configuration object (see CompilerConfiguration) and you can set here the
values you are missing. There are additional helper methods like
withConfiguration to make some things a bit more easy, but I think you won't
need those.
Normally I would instead suggest to extend the command line interface to
support these options as has been done for GroovyMain. But then this would
maybe not be available for all the versions you intend to target. The config
script solution should work from Groovy 2.4.0+
> groovyc missing features from the library compiler
> --------------------------------------------------
>
> Key: GROOVY-11194
> URL: https://issues.apache.org/jira/browse/GROOVY-11194
> Project: Groovy
> Issue Type: New Feature
> Components: command line processing, Compiler
> Affects Versions: 3.0.19, 5.0.0-alpha-2, 4.0.15
> Reporter: Benjamin Marwell
> Priority: Critical
>
> Hello groovy team,
> no version of the groovy distribution supports any of those features on the
> {{groovyc}} command line, which are available when invoking the groovy
> compiler via library means:
> * setDebug( boolean )
> * setVerbose( boolean )
> * setWarningLevel( int )
> * setTolerance( int )
> * invokeDynamic via optimizationOptions.put("indy", true);
> optimizationOptions.put("int", false);
> * parallel Parsing via optimizationOptions.put("parallelParse", true);
> This is important when gplus-maven-plugin shall run in fork mode. Draft PR:
> https://github.com/groovy/GMavenPlus/pull/283
--
This message was sent by Atlassian Jira
(v8.20.10#820010)