public class GrailsEclipseConsole extends GrailsConsole
It is activated by setting system property "grails.console.class" to the fully qualified name of this class.
Having the changes in a class triggered by system property also leaves open the option to have Eclipse provide a different version of the class at runtime, to allow for further customisation to support not yet anticipated needs.
CATEGORY_SEPARATOR, ENABLE_INTERACTIVE, ENABLE_TERMINAL, ERROR, HISTORYFILE, LINE_SEPARATOR, PROMPT, SECURE_MASK_CHAR, SPACE, STACKTRACE_FILTERED_MESSAGE, STACKTRACE_MESSAGE, WARNING| Constructor and Description |
|---|
GrailsEclipseConsole()
Create a GrailsConsole that has some customizations to work better with STS.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.io.OutputStream |
ansiWrap(java.io.OutputStream out)
Hook method that allows controlling whether or not output streams should be wrapped by
AnsiConsole.wrapOutputStream.
|
protected jline.console.ConsoleReader |
createConsoleReader() |
protected jline.Terminal |
createTerminal()
Creates the instance of Terminal used directly in GrailsConsole.
|
addStatus, append, beforeShutdown, createInstance, echoStatus, error, error, error, error, flush, getCategory, getErr, getInput, getInstance, getLastMessage, getOut, getReader, getTerminal, indicateProgress, indicateProgress, indicateProgress, indicateProgressPercentage, info, isAnsiEnabled, isInteractiveEnabled, isStacktrace, isVerbose, isWindows, log, persistHistory, prepareHistory, restoreTerminal, secureUserInput, setAnsiEnabled, setErr, setInstance, setLastMessage, setOut, setStacktrace, setVerbose, showPrompt, updateStatus, userInput, userInput, userInput, verbose, warn, warningpublic GrailsEclipseConsole()
throws java.io.IOException
java.io.IOExceptionprotected java.io.OutputStream ansiWrap(java.io.OutputStream out)
GrailsConsoleansiWrap in class GrailsConsoleprotected jline.console.ConsoleReader createConsoleReader()
throws java.io.IOException
createConsoleReader in class GrailsConsolejava.io.IOExceptionprotected jline.Terminal createTerminal()
GrailsConsolecreateTerminal in class GrailsConsole