This class is meant to keep changes made in support of Eclipse separate from the standard GrailsConsole implementation.
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.
Fields inherited from class | Fields |
---|---|
class GrailsConsole |
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. |
Type Params | Return Type | Name and description |
---|---|---|
|
protected java.io.OutputStream |
ansiWrap(java.io.OutputStream out) |
|
protected jline.Terminal |
createTerminal() |
Create a GrailsConsole that has some customizations to work better with STS. Note that this console implicitly captures and redirects System.out, System.err and System.in in the super class. So extreme care must be taken to ensure these streams are setup correctly before creating an instance.