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

[FEATURE] Automatically stop the dev server when the clean task is run #4

Open
Insprill opened this issue Aug 3, 2022 · 1 comment

Comments

@Insprill
Copy link
Contributor

Insprill commented Aug 3, 2022

Occasionally I'll end up running Gradle's clean task while the dev server is running, causing the task to fail, and the dev server to break as some of its files have been deleted. Ideally, when the clean task is run, the dev server would be terminated.

I initially tried to implement this myself, however, it doesn't look like there's any good way to terminate a JavaExec task and I didn't want to get too deep in the weeds of alternate solutions.

@Rikonardo
Copy link
Owner

It's a good idea, but it's really not easy to implement. Simultaneously running Gradle tasks cannot interact directly with each other, which means we will have to use file watchers, similar to those with which we reload developed plugin after build. However, this creates a problem - the clean task must wait until the server is completely shut down.
I'll think about how it could be implemented

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

2 participants