Closed alexlehm closed 8 years ago
Hi @alexlehm You're right, that's not an option right now. Will implement it. regards Fuzz
Just to clarify:
buildResources
to true
will cause a compile and reload. Do we need a third option to redeploy the verticle without compilation?Do these make sense? regards
I think compile and reload is ok when the resources change, at least it would be for my usecase.
The additional paths will probably contain things that are parsed once on startup (like the keystore on a server, I have not found an option to reload that, maybe that is possible inside vert.x as well).
I think mostly relative paths are necessary, not sure if absolute paths are needed as well, maybe something like a config file in a homedir.
Hi @alexlehm,
I've pushed an implementation for this to branch: https://github.com/dazraf/vertx-hot/tree/feature/27-add-path-list-to-config
It's general purpose. Paths will by default redeploy. But they can also be configure to recompile or refresh(the browser). Paths can be relative from the project root The readme has been updated to show how it can be used. example1/pom.xml contains a sample setup.
Also, this branch upgrades maven-invoker to 2.2.
Could you review and comment? Thanks very much Fuzz.
Paths can also be absolute
That covers the requirements I have quite nicely, thanks
Ok. Will merge later tonight test further and deploy snapshot.
Ok. Released to central. v2.1.0.
I am using a custom ssl cert for testing that I have to change occasionally during development. I think it would be possible to use the redeploy feature for that if the dir that contains the cert would be watched in addition to the normal dirs. I assume there is no config option for that, could you add one?