Package org.sikuli.script.runners
Class ProcessRunner
- java.lang.Object
-
- org.sikuli.script.runners.AbstractScriptRunner
-
- org.sikuli.script.runners.ProcessRunner
-
- All Implemented Interfaces:
IScriptRunner
public class ProcessRunner extends AbstractScriptRunner
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.sikuli.script.support.IScriptRunner
IScriptRunner.EffectiveRunner, IScriptRunner.Options
-
-
Constructor Summary
Constructors Constructor Description ProcessRunner()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleancloseApp(String... givenCmd)static booleancloseApp(List<String> givenCmd)static voiddetach(String... args)static voiddetach(List<String> cmd)String[]getExtensions()returns the list of possible script file extensions, first is the defaultStringgetName()Gets the name of the ScriptRunner.StringgetType()return the type of script this handler can execute.static Stringrun(String... args)static Stringrun(List<String> cmd)static intrunBlocking(List<String> cmd)static StringrunCommand(String... args)static booleanstartApp(String... givenCmd)static booleanstartApp(List<String> givenCmd)-
Methods inherited from class org.sikuli.script.runners.AbstractScriptRunner
abort, adjustBundlePath, canHandle, canHandleFileEnding, close, doAbort, doClose, doEvalScript, doInit, doRedirect, doRunLines, doRunScript, evalScript, execAfter, execBefore, getDefaultExtension, getEffectiveRunner, getFileEndings, hasExtension, init, isAborted, isAbortSupported, isReady, isRunning, isSupported, log, redirect, reset, resetBundlePath, runLines, runScript
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
EXTENSIONS
public static final String[] EXTENSIONS
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:IScriptRunnerGets the name of the ScriptRunner. Should be unique. This value is needed to distinguish between different ScriptRunners.- Returns:
- Name to identify the ScriptRunner or null if not available
-
getExtensions
public String[] getExtensions()
Description copied from interface:IScriptRunnerreturns the list of possible script file extensions, first is the default- Returns:
- array of strings
-
getType
public String getType()
Description copied from interface:IScriptRunnerreturn the type of script this handler can execute.- Returns:
-
runCommand
public static String runCommand(String... args) throws IOException, InterruptedException
- Throws:
IOExceptionInterruptedException
-
detach
public static void detach(String... args)
-
closeApp
public static boolean closeApp(String... givenCmd)
-
startApp
public static boolean startApp(String... givenCmd)
-
-