[
https://issues.jboss.org/browse/FORGE-682?page=com.atlassian.jira.plugin....
]
Lincoln Baxter III closed FORGE-682.
------------------------------------
Resolution: Done
Hey Andre.
You are correct that there is no really great way to do this kind of validation in Forge
1. Our current recommendation is to validate this once the plugin has run, then do a
ShellPrompt.prompt() to ask the user for corrected input.
This is fixed in Forge 2 since we added a validation step for command execution.
~Lincoln
ShellPrompt has fixed set of PromptTypes, should be extensible
--------------------------------------------------------------
Key: FORGE-682
URL:
https://issues.jboss.org/browse/FORGE-682
Project: Forge
Issue Type: Enhancement
Components: UI - Shell
Affects Versions: 1.0.5.Final
Reporter: Andre Dietisheim
Fix For: 2.0.0.Alpha2
If a plugin wants to prompt the user to supply some settings it'll use:
{code:title=ShellPrompt}
String promptCommon(String message, PromptType type);
{code}
PromptType is what the prompt would use to validate the user input against. Unfortunately
PromptType is an enum so there's no way for a plugin to provide it's own prompt
type.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira