diff -r 612f2e5647fc extexecution/src/org/netbeans/api/extexecution/ExternalProcessSupport.java --- a/extexecution/src/org/netbeans/api/extexecution/ExternalProcessSupport.java Wed Jul 08 09:24:30 2009 +0200 +++ b/extexecution/src/org/netbeans/api/extexecution/ExternalProcessSupport.java Thu Jul 09 11:12:28 2009 +0200 @@ -62,11 +62,15 @@ /** * Destroys the process passed as parameter and attempts to terminate all child * processes created during the process' execution. + *

+ * Any process running in environment containing the same variables + * with the same values as those passed in env (all of them) + * is supposed to be part of the process tree and may be terminated. * * @param process process to kill - * @param env Map containing environment variable names and values. - * Any process running with such envvar's value will be - * terminated. Improves localization of child processes. + * @param env map containing the variables and their values which the + * process must have to be considered being part of + * the tree to kill */ public static void destroy(@NonNull Process process, @NonNull Map env) { Parameters.notNull("process", process); diff -r 612f2e5647fc extexecution/src/org/netbeans/modules/extexecution/WrapperProcess.java --- a/extexecution/src/org/netbeans/modules/extexecution/WrapperProcess.java Wed Jul 08 09:24:30 2009 +0200 +++ b/extexecution/src/org/netbeans/modules/extexecution/WrapperProcess.java Thu Jul 09 11:12:28 2009 +0200 @@ -50,7 +50,7 @@ */ public class WrapperProcess extends Process { - public static final String KEY_UUID = "NB_EXEC_PROCESS_UUID"; //NOI18N + public static final String KEY_UUID = "NB_EXEC_EXTEXECUTION_PROCESS_UUID"; //NOI18N private final String uuid; private final Process del; diff -r 612f2e5647fc maven/src/org/netbeans/modules/maven/execute/MavenCommandLineExecutor.java --- a/maven/src/org/netbeans/modules/maven/execute/MavenCommandLineExecutor.java Wed Jul 08 09:24:30 2009 +0200 +++ b/maven/src/org/netbeans/modules/maven/execute/MavenCommandLineExecutor.java Thu Jul 09 11:12:28 2009 +0200 @@ -85,7 +85,7 @@ static final String ENV_PREFIX = "Env."; //NOI18N static final String ENV_JAVAHOME = "Env.JAVA_HOME"; //NOI18N - private static final String KEY_UUID = "NB_EXEC_PROCESS_UUID"; //NOI18N + private static final String KEY_UUID = "NB_EXEC_MAVEN_PROCESS_UUID"; //NOI18N private ProgressHandle handle; private Process process;