invoke JavaProgramPatcher on run, too

This commit is contained in:
peter
2010-03-25 18:15:26 +00:00
parent b55f812986
commit cbb545665f
4 changed files with 13 additions and 10 deletions
@@ -82,7 +82,9 @@ public class DefaultJavaProgramRunner extends JavaPatchableProgramRunner {
ExecutionResult executionResult;
boolean shouldAddDefaultActions = true;
if (state instanceof JavaCommandLine) {
patch(((JavaCommandLine)state).getJavaParameters(), state.getRunnerSettings(), true);
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) {