You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by GitBox <gi...@apache.org> on 2019/08/18 08:58:30 UTC
[GitHub] [groovy] expexes commented on issue #993: GROOVY-9228: CLI options
for static compilation
expexes commented on issue #993: GROOVY-9228: CLI options for static compilation
URL: https://github.com/apache/groovy/pull/993#issuecomment-522304093
@remkop Thanks for reviewing!
I tried another more natural way to apply transforms using smth like this:
```java
main.conf.addCompilationCustomizers(new ASTTransformationCustomizer(CompileStatic.class));
```
but compiler cannot find the `ASTTransformationCustomizer` class:
```java
/src/main/java/groovy/ui/GroovyMain.java:31: error: cannot find symbol
import org.codehaus.groovy.control.customizers.ASTTransformationCustomizer;
^
symbol: class ASTTransformationCustomizer
location: package org.codehaus.groovy.control.customizers
/src/main/java/groovy/ui/GroovyMain.java:309: error: cannot find symbol
main.conf.addCompilationCustomizers(new ASTTransformationCustomizer(CompileStatic.class));
^
symbol: class ASTTransformationCustomizer
location: class GroovyCommand
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services