We have a large vert.x application we would like to enhance with Quarkus capabilities. Currently the app starts with a classic public static void main(String[] args)
to first collect some configuration and then kick off a vert.x
instance to load a dozen or so Verticles.
Looking at a Quarkus Hello World example I can't see how the startup sequence happens. The first thing we are after is quarkus dev
with its ability to hot-reload classes.
What are the steps / is there a guide to wrap an existing vert.x application into quarkus?
Pointers are appreciated
I think you are looking for this: https://vertx.io/docs/vertx-core/java/#_live_redeploy
What you have to do is use the Laucher class from vert.x and pass the command line arguments.
From the docs:
To enable the live redeploy, pass the --redeploy option to the run command. The --redeploy indicates the set of file to watch. This set can use Ant-style patterns (with **, * and ?). You can specify several sets by separating them using a comma (,). Patterns are relative to the current working directory.
Basically you use a pattern in the command line to trigger the redeploy. The example there (for intelliJ) --redeploy=**/*.class
means that every time you compile new classes (command + F9 on Mac) the application will be redeployed.
You can check the docs to see if it fits your all the points you mentioned, I believe it should work fine, but I never tested with the log files.