Class XWikiDefaultExecuteResultHandler

  • All Implemented Interfaces:
    org.apache.commons.exec.ExecuteResultHandler

    public class XWikiDefaultExecuteResultHandler
    extends org.apache.commons.exec.DefaultExecuteResultHandler
    Extend the default implementation class to log an error when the process fails before finishing properly.
    Version:
    $Id: 33017d1432c4f1fa6b76912ec00fec81ef629b60 $
    • Constructor Detail

      • XWikiDefaultExecuteResultHandler

        public XWikiDefaultExecuteResultHandler​(String command)
        Parameters:
        command - the command being executed (used when logging errors)
    • Method Detail

      • onProcessFailed

        public void onProcessFailed​(org.apache.commons.exec.ExecuteException e)
        Specified by:
        onProcessFailed in interface org.apache.commons.exec.ExecuteResultHandler
        Overrides:
        onProcessFailed in class org.apache.commons.exec.DefaultExecuteResultHandler