How to kill an ANT process?
===

I have a process which launch any commande line process using such a syntaxe :

    ProcessBuilder launcher = new ProcessBuilder();
    launcher.redirectErrorStream(true);
    launcher.command(genericCommandeLine);
    Process process;
    process = launcher.start();

The important thing is that I want to be able to kill those commande line when I want.

I usually use this syntaxe to kill them :

    process.destroy();

This work very well with a generic commande line on Windows or on Unix, but  when the process launch is an ANT process, `process.destroy()` isn’t able to kill it.
I read in this forum that the fact that ANT is being launch by an other JVM is eventually the problem, but how to kill this other JVM ?
I’m looking for a solution usable under Windows and Unix/Linux.
Any idea ?

Thanks,
Chris

