Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Patch
Description
This is regarding the need Groovy++ has to support file extensions other than *.groovy - which can really be useful to others as well.
I am submitting here a revised version of the patch - it now does not put entries like following in org.codehaus.groovy.transform.ASTTransformation, where they don't belong
#files:gpp,grunit
These can now be defined in a separate file org.codehaus.groovy.source.Extensions and the classes listed in such files need to implement the following interface to register the extensions with the compiler through which it calls back to collect the file extensions of caller's interest.
public interface SourceExtensionSupport { Set<String> getExtensions(); }
Review comments welcome.
Attachments
Attachments
Issue Links
- duplicates
-
GROOVY-4318 Provide a mechanism for Global AST Transformations to be able to define a file extension for the Groovy sources they should be applied to
- Closed