Uses of Class
berlin.yuna.clu.logic.Terminal
-
Packages that use Terminal Package Description berlin.yuna.clu.logic -
-
Uses of Terminal in berlin.yuna.clu.logic
Methods in berlin.yuna.clu.logic that return Terminal Modifier and Type Method Description TerminalTerminal. breakOnError(boolean breakOnError)Will throwIllegalStateExceptionon error when trueTerminalTerminal. clearConsole()Clears the console outputconsoleInfo()consoleError()TerminalTerminal. consumerError(Consumer<String>... consumerError)TerminalTerminal. consumerErrorStream(Consumer<String>... consumerError)TerminalTerminal. consumerInfo(Consumer<String>... consumerError)TerminalTerminal. consumerInfoStream(Consumer<String>... consumerInfo)static TerminalTerminal. copyOf(Terminal terminal)Clean copy of terminal with default consumer and clean console logTerminalTerminal. dir(File dir)TerminalTerminal. dir(String dir)TerminalTerminal. dir(Path dir)TerminalTerminal. execute(String command)Executes a command with (sh or cmd.exe) ant he help of theProcessBuilderDefault working directory: user.dirtimeoutMs(long)if timeout is neededTerminalTerminal. execute(String command, long waitForMs)Executes a command with (sh or cmd.exe) ant he help of theProcessBuilderDefault working directory: user.dirtimeoutMs(long)if timeout is neededTerminalTerminal. timeoutMs(long timeoutMs)Alternative toProcess.waitFor()as sometimes a process can be to fast or to slow forProcess.waitFor()or you need a timeout Its combined with (breakOnError(boolean)) Default : -1 (deactivated) Also activates a heartbeat check (timeoutMs / 40) which will also timeout if there is no output is happeningTerminalTerminal. waitFor(long waitForMs)Methods in berlin.yuna.clu.logic with parameters of type Terminal Modifier and Type Method Description static TerminalTerminal. copyOf(Terminal terminal)Clean copy of terminal with default consumer and clean console log
-