Package org.apache.maven.internal.impl
Class DefaultPrompter
java.lang.Object
org.apache.maven.internal.impl.DefaultPrompter
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.voidshowMessage(String message) Displays a message to the user.
- 
Constructor Details- 
DefaultPrompter@Inject public DefaultPrompter(org.codehaus.plexus.PlexusContainer container) 
 
- 
- 
Method Details- 
promptpublic String prompt(String message, List<String> possibleValues, String defaultReply) throws PrompterException Description copied from interface:PrompterPrompts the user for a string using a list of possible values and a default reply.- Specified by:
- promptin interface- Prompter
- Parameters:
- message- the message to display
- possibleValues- the list of possible values
- defaultReply- the default reply value
- Returns:
- the string entered by the user
- Throws:
- PrompterException- if an exception occurs
 
- 
promptForPasswordDescription copied from interface:PrompterPrompts the user for a password.- Specified by:
- promptForPasswordin interface- Prompter
- Parameters:
- message- the message to display
- Returns:
- the password entered by the user
- Throws:
- PrompterException- if an exception occurs
 
- 
showMessageDescription copied from interface:PrompterDisplays a message to the user.- Specified by:
- showMessagein interface- Prompter
- Parameters:
- message- the message to display
- Throws:
- PrompterException- if an exception occurs
 
 
-