Package org.apache.maven.internal.impl
Class DefaultPrompter
java.lang.Object
org.apache.maven.internal.impl.DefaultPrompter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionPrompts the user for a string using a list of possible values and a default reply.promptForPassword
(String message) Prompts the user for a password.void
showMessage
(String message) Displays a message to the user.
-
Constructor Details
-
DefaultPrompter
@Inject public DefaultPrompter(org.codehaus.plexus.PlexusContainer container)
-
-
Method Details
-
prompt
public String prompt(String message, List<String> possibleValues, String defaultReply) throws PrompterException Description copied from interface:Prompter
Prompts the user for a string using a list of possible values and a default reply.- Specified by:
prompt
in interfacePrompter
- Parameters:
message
- the message to displaypossibleValues
- the list of possible valuesdefaultReply
- the default reply value- Returns:
- the string entered by the user
- Throws:
PrompterException
- if an exception occurs
-
promptForPassword
Description copied from interface:Prompter
Prompts the user for a password.- Specified by:
promptForPassword
in interfacePrompter
- Parameters:
message
- the message to display- Returns:
- the password entered by the user
- Throws:
PrompterException
- if an exception occurs
-
showMessage
Description copied from interface:Prompter
Displays a message to the user.- Specified by:
showMessage
in interfacePrompter
- Parameters:
message
- the message to display- Throws:
PrompterException
- if an exception occurs
-