-
Notifications
You must be signed in to change notification settings - Fork 27
Implement custom action preprocessor extension for plugins and cli #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
it is very old mechanism developed 20+ years ago to provide some point where custom code can be called
then your registered extension should be called during preprocessing |
Okay thanks, but how can I use this with a build tool? |
it was developed for use preprocessor programmatically as part of build process, for use on application level it needs improvements |
Oh okay but thanks anyway |
anyway it is a good point, I will provide way to register a class as action preprocessor extension in plugins |
I have made some improvements in 7.1.2-SNAPSHOT, added |
Yoo, that's cool. Thank you! I'll take a look into it! |
the feature is released in 7.1.2 |
I've searched through half of the code in order to understand how the //#action directive works. As far as I understood one can plug in your own preprocessing macros through extending the PreprocessorExtension. But how can I set my own extension class so that the preprocessor uses it? Neither the documap nor the gradle task give any information about that. In addition to that, a PreprocessorContext.setPreprocessorExtension(PreprocessorExtension) method is defined but never used (at least I couldn't find any usages with IntelliJ decompiler & find usages). Is the feature not ready yet or did I just miss something?
The text was updated successfully, but these errors were encountered: