run custom patchers via the generic debugger patching mechanism (for the sake of Tomcat)

This commit is contained in:
peter
2010-03-26 08:47:19 +00:00
parent 436d78bfba
commit 9fbe5ff27c
2 changed files with 2 additions and 2 deletions
@@ -62,6 +62,7 @@ public class DefaultJavaProgramRunner extends JavaPatchableProgramRunner {
}
public void patch(JavaParameters javaParameters, RunnerSettings settings, final boolean beforeExecution) throws ExecutionException {
runCustomPatchers(javaParameters, settings, Executor.EXECUTOR_EXTENSION_NAME.findExtension(DefaultRunExecutor.class));
}
public void checkConfiguration(final RunnerSettings settings, final ConfigurationPerRunnerSettings configurationPerRunnerSettings)
@@ -84,7 +85,6 @@ public class DefaultJavaProgramRunner extends JavaPatchableProgramRunner {
if (state instanceof JavaCommandLine) {
final JavaParameters parameters = ((JavaCommandLine)state).getJavaParameters();
patch(parameters, state.getRunnerSettings(), true);
runCustomPatchers(parameters, state.getRunnerSettings(), executor);
final ProcessProxy proxy = ProcessProxyFactory.getInstance().createCommandLineProxy((JavaCommandLine)state);
executionResult = state.execute(executor, this);
if (proxy != null && executionResult != null) {