Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
AS7Plugin - replace deprecated call with new API
Browse files Browse the repository at this point in the history
This commit must *NOT* get into product branch, even after new CaptureMode
thingy is merged.
  • Loading branch information
Libor Zoubek committed May 22, 2015
1 parent d3b7f3c commit c31f2fb
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -35,6 +35,7 @@
import org.rhq.core.pluginapi.util.StartScriptConfiguration;
import org.rhq.core.system.OperatingSystemType;
import org.rhq.core.system.ProcessExecution;
import org.rhq.core.system.ProcessExecution.CaptureMode;
import org.rhq.core.system.ProcessExecutionResults;
import org.rhq.core.system.SystemInfo;
import org.rhq.core.util.file.FileUtil;
Expand Down Expand Up @@ -137,7 +138,7 @@ private ProcessExecutionResults execute(String prefix, File executable, String..
// When running on Windows 9x, standalone.bat and domain.bat need the cwd to be the AS bin dir in order to find
// standalone.bat.conf and domain.bat.conf respectively.
processExecution.setWorkingDirectory(startScriptFile.getParent());
processExecution.setCaptureOutput(true);
processExecution.setCaptureMode(CaptureMode.memory());
processExecution.setWaitForCompletion(MAX_PROCESS_WAIT_TIME);
processExecution.setKillOnTimeout(false);

Expand Down

0 comments on commit c31f2fb

Please sign in to comment.