Package org.apache.maven.internal.impl
Class DefaultPrompter
java.lang.Object
org.apache.maven.internal.impl.DefaultPrompter
-
Constructor Summary
Constructors -
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.voidshowMessage(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:PrompterPrompts the user for a string using a list of possible values and a default reply.- Specified by:
promptin 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:PrompterPrompts the user for a password.- Specified by:
promptForPasswordin 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:PrompterDisplays a message to the user.- Specified by:
showMessagein interfacePrompter- Parameters:
message- the message to display- Throws:
PrompterException- if an exception occurs
-