jbangdev / jbang

Unleash the power of Java - JBang Lets Students, Educators and Professional Developers create, edit and run self-contained source-only Java programs with unprecedented ease.
https://jbang.dev
MIT License
1.42k stars 157 forks source link

Enhance Vert.x Demo with Live Reload #141

Open murphye opened 4 years ago

murphye commented 4 years ago

This is sort of nebulous feature request, but I will do my best to explain.

It would be neat to better support Live Editing for Vert.x by using the Vert.x Launcher class, which has a main method to bootstrap it.

The end result would be when you run --edit-live with a Vert.x app, and Launcher, it could use Vert.x Launcher --redeploy mechanism as well.

I tried to think of a good way to do this, but came up empty. It should be prescriptive, ideally with minimal fuss to get working.

maxandersen commented 4 years ago

This would be nice, but not sure I can implement it without patching/change vert.x ...you are basically asking that vert.x during its --redeploy it would honors jbang's "magic" of fetching dependencies and change the class path.

maxandersen commented 3 years ago

This could maybe be implemented once we have #487 and some api for getting the sourrounding jbang script...then you could imagine jbang dev@vertx yourscript.java and dev would be alias to a main handler which would do what --redeploy does.

@julienponge and @jviet interested ?