runModIDEA does not exist
Closed this issue · 8 comments
This template works great, and I am able to runmod from command line. I am unable to run with auto-redeploy however. The build file suggests that runModIDEA is the way to go, but ./gradlew tasks tells me it doesn't exist. Please advise. Thanks.
As I read the new version of gradle template, it seems the that the runMod will take intellij output.
If you use IDEA 13 or above, you should edit the project/gradle/vertx.gradle file and replace "out/production/" by "classes/production/" and "out/test/" by "classes/test"
Thanks. That file references vertx_classpath.txt, where the paths are. By default it set the gradle build classpath in front of the IDEA output. So I imagine bumping that up does the trick. I moved the out paths above bin, but it doesn't make a difference. It only runs the build module.
You can edit your vertx_classpath.txt file. See http://vertx.io/dev_guide.html#run-your-module-and-see-your-changes-immediately for more info
Thanks. I had read that and done everything listed, and I am still not auto-redeploying. I believe auto-redeploy is true by default when basing a project on the vertx gradle template project. How can I run vertx to get logging output for where it's running the module from? I'd like to do this as a sanity check.
The issue is a bit bigger than I originally mentioned - not only does auto redeploy not work on build path, but it doesn't even pick up changes on stop/start. It takes a gradle "clean" and "assemble" to actually pick up the changes, despite classpath looking like:
src/main/resources
out/production/vert-x-reverse-proxy
out/test/vert-x-reverse-proxy
bin
build/deps
The project is here: https://github.com/robertjchristian/vert-x-reverse-proxy
I've also asked this question on S/O: http://stackoverflow.com/questions/22104008/run-vert-x-with-auto-redeploy
@purplefox - Can you please direct me to vertx debug output? When I run vertx on the command line I don't see an option for logging/debug output. I am looking for how vertx is resolving the module, since it's obviously not happening on the IDE output path for me. Thanks!
Are you sure you have exactly followed the instructions as described here http://vertx.io/dev_guide.html#run-your-module-and-see-your-changes-immediately ? In particular you should not build at the command line into target/mods.
I cloned your project to take a look. The problem is that your vertx_classpath.txt is looking in the wrong place.
It's pointing at directories 'out/production/vert-x-reverse-proxy'
But your IDEA project is configured to ouput to 'out/production/vertx-reverse-proxy'
(note the extra hyphen)
Once this is corrected it all works as expected.