-
Notifications
You must be signed in to change notification settings - Fork 29
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
Spawn a fire-and-forget process #5
Comments
To my understanding this is already possible. Just executing a SpawnProcessTask and never executing the KillProcessTask will leave the task running. However you can't start a process that has no output. |
The documentation is confusing to me in that regard. It says:
What calls the Also, you write:
So that's like: But for such things, shouldn't we just use the https://github.com/psxpaul/gradle-execfork-plugin? Which makes sure that if you don't specify after which task the process should be stopped, it will be at the end of the build. But I myself see an important difference between the two plugins, and that's the following use case: gradle startServer
# execute manual commands needing that server
# and then optionally:
gradle stopServer You can't do this use case at all with the execfork plugin. And I think the documentation should reflect that more clearly. |
It would be nice to allow spawning a process without terminating it.. ever. So a standalone process that doesn't even clean up after themselves.
Implementation might be as simple as dropping ready as mandatory argument, but you know better than me. I am also willing to open a PR, if necessary 😄
The text was updated successfully, but these errors were encountered: