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
[core] Support pre/post execution hooks #820
Comments
A tentative option:
I know include/exclude as stated right there makes no sense, it’s to show possible config This setup would allow running OS commands before and after specific steps. In the case of There will be a second type of hook that will let you load a Java class, taking the event and the context as inputs. This requires setting up an isolated classpath. Questions:
|
Allow pre/post hooks for each execution step. There may be 2 types of hooks:
ServiceLoader
interface. Callback methods should accept and event object (type, name), a read-only view of the evaluated model, basedir, and outputdir.Loading Java hooks requires configuring the location where required JARs are placed. This location should be set in the model config file or DSL.
The text was updated successfully, but these errors were encountered: