Replies: 2 comments 1 reply
-
Code isn't actually being run "in" JBang. Once the code is running JBang is gone, it's only used to start the code. But you can test that JBang was used to start the code by testing for certain environment variables, like for example
From within your running code? Not without knowing what was passed to JBang in the first place. So if you ran
Well, as explained in the first point, JBang is actually not present anymore when your code is running so a hot reload mechanism doesn't seem possible given the current system. But people do use JBang scripts together with Quarkus which does have a hot reload mechanism, perhaps that is an option? (You can do HTH |
Beta Was this translation helpful? Give feedback.
-
|
@quintesse 's reply is 100% correct. you can detect if jbang was used to run ( or rather that the jbang wrapper script was used to run ); once that is done jbang is not in control - the java or whatever is used to run is in control - jbang does not have a superpower it is Just Java :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. A few question and a possible feature request, if not already present.
Thanks a lot
Beta Was this translation helpful? Give feedback.
All reactions