Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Queries re: resource changes #71

Open
tomhillgreyridge opened this issue Jul 27, 2021 · 0 comments
Open

Queries re: resource changes #71

tomhillgreyridge opened this issue Jul 27, 2021 · 0 comments

Comments

@tomhillgreyridge
Copy link

Hi there.

Am working on a custom plugin for reloading Javalin on any class or resource change. I have the class reloading part working and the resource reloading works, but has some quirks or areas I don't understand

  • Is it necessary to use the watchResources property in hotswap-agent.properties if we want to watch for resource changes? If so, what is the purpose of the "path" parameter in the @OnResourceFileEvent annotation?
  • When I save a single file with a single word change, I seem to receive multiple file change events. Is this expected (I assume it is the IDE being clever to avoid losing data on a crash) and do I need to do anything specific to deal with it - right now I am using a scheduled reflection command and it appears to only be being called once, but I don't know exactly how that works!

Finally, thanks very much for what is a fantastically useful piece of code. With the reload plugin implemented, the application restarts in 10ms which makes for a much nicer development workflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant