How to kill Ant forked process?

2019-09-02 21:05发布

问题:

I have an Ant build file and there is a task in it. The problem is every time i kill the outer Ant process the forked process is still running out there, so there will be many java process in Windows Task manager, I wonder if there is way when i kill the outer Ant process it will kill all child process at the same time.

Thanks.

回答1:

Yes using "kill process tree will" kill all sub-processes.