public class CommandLineHelper
extends java.lang.Object
| Constructor and Description |
|---|
CommandLineHelper() |
CommandLineHelper(java.io.InputStream input,
java.io.PrintStream out)
Deprecated.
Use no-args constructor
|
CommandLineHelper(java.io.PrintStream out)
Deprecated.
Use no-args constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
userInput(java.lang.String message)
Replacement for AntBuilder.input() to eliminate dependency of
GrailsScriptRunner on the Ant libraries.
|
java.lang.String |
userInput(java.lang.String message,
java.lang.String[] validResponses)
Replacement for AntBuilder.input() to eliminate dependency of
GrailsScriptRunner on the Ant libraries.
|
public CommandLineHelper()
@Deprecated public CommandLineHelper(java.io.PrintStream out)
@Deprecated
public CommandLineHelper(java.io.InputStream input,
java.io.PrintStream out)
public java.lang.String userInput(java.lang.String message)
message - The message/question to display.public java.lang.String userInput(java.lang.String message,
java.lang.String[] validResponses)
null.message - The message/question to display.validResponses - An array of responses that the user is
allowed to enter. Displayed after the message.null
if the user never entered a valid string.