-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
The current signature of the execute() method is as follows:
public final OutputAnalyzer execute(String cmd, boolean silent)
It would be useful to have another execute() method as follows:
public final OutputAnalyzer execute(String vmOption, String cmd, boolean silent)
so that the caller can pass in some vm option for debugging purposes, e.g.
OutputAnalyzer output = cmdExecutor.execute("-J
Xlog:class+load,cds=debug", jcmd, true/*silent*/);
public final OutputAnalyzer execute(String cmd, boolean silent)
It would be useful to have another execute() method as follows:
public final OutputAnalyzer execute(String vmOption, String cmd, boolean silent)
so that the caller can pass in some vm option for debugging purposes, e.g.
OutputAnalyzer output = cmdExecutor.execute("-J
Xlog:class+load,cds=debug", jcmd, true/*silent*/);