-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Dev mode - make it possible to watch files matching a predicate #32980
Conversation
core/devmode-spi/src/main/java/io/quarkus/dev/testing/TestWatchedFiles.java
Show resolved
Hide resolved
...loyment/src/main/java/io/quarkus/deployment/builditem/HotDeploymentWatchedFileBuildItem.java
Outdated
Show resolved
Hide resolved
1d7f5d2
to
d7e4e0e
Compare
I haven't checked how this works, but at high level I wonder how this can possibly work. We don't watch every single file on the system, do we? So how can you possibly filter among the whole universe? I suspect the term "predicate" is used in a different way than I'd expect, it might be worth clarifying at least javadoc, if not finding a better name. |
maybe naming it locationPredicate as the predicate is on the location? |
@Sanne Of course we don't filter the whole universe. We do filter the set of detected changes. This set is not well documented but from the code it looks like we watch resource dirs of all reloadable modules (as defined in
I will try to add something to the javadoc. Out of curiosity, what's the way you would expect? |
Makes sense. I will also add some more info to the javadoc. |
d7e4e0e
to
2123e07
Compare
We should also document what happens if multiple |
2123e07
to
021c691
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
021c691
to
19c5691
Compare
This comment has been minimized.
This comment has been minimized.
- HotDeploymentWatchedFileBuildItem#builder().setPredicate(p).build()
19c5691
to
5c659ef
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Those JVM Tests - JDK 19 failures do not seem to be related... |
I will give it a try today, thanks @mkouba |
Hi Andy, did you manage to try this out? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's perfect @mkouba thanks again and sorry for the delay
This comment has been minimized.
This comment has been minimized.
@gsmet I cannot make the JVM Tests - JDK 19 pass :-(. But the various failures do not look related... |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Awesome I was waiting for this one :) thanks agian @mkouba |
See also https://quarkusio.zulipchat.com/#narrow/stream/187038-dev/topic/Allow.20extensions.20to.20watch.20new.20files.20.28with.20restart.29