Class ShCommandLine

java.lang.Object
org.apache.commons.exec.CommandLine
org.wildfly.qa.tooling.processexecution.ShCommandLine

public class ShCommandLine extends org.apache.commons.exec.CommandLine
A boilerplate for making the shell script center of rotation, so we don't have to specify binary each time. Be aware that WildFly starts child process from script. To successfully destroy child processes you need to execute process.toHandle().children().forEach(ProcessHandle::destroy).
  • Constructor Summary

    Constructors
    Constructor
    Description
    ShCommandLine(Path shellScriptPath)
    Create new instance
  • Method Summary

    Methods inherited from class org.apache.commons.exec.CommandLine

    addArgument, addArgument, addArguments, addArguments, addArguments, addArguments, getArguments, getExecutable, getSubstitutionMap, isFile, parse, parse, setSubstitutionMap, toString, toStrings

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ShCommandLine

      public ShCommandLine(Path shellScriptPath)
      Create new instance
      Parameters:
      shellScriptPath - path to the shell script