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 -
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
-
Constructor Details
-
ShCommandLine
Create new instance- Parameters:
shellScriptPath- path to the shell script
-