This content has been marked as final.
Show 1 reply
-
1. Re: OsCommandBatchlet: run native OS commands in a batch job
cfang Mar 7, 2017 10:35 PM (in response to cfang)As part of the fix to issue
JBERET-313 Support custom stream handler in OsCommandBatchlet,
a new batch property is added to OsCommandBatchlet, to set the custom input/output stream handler:
<property name="streamHandler" value="org.jberet.support.io.OsCommandBatchletTest$NoopStreamHandler"/> The property value is the fully qualified name of a class that implements org.apache.commons.exec.ExecuteStreamHandler, to customize the handling of input and output stream for the OS command subprocess. For instance, it may filter out certain output text, limit the amount of output data, or ignore all output. This is useful when the command produces too much output.