[
https://issues.jboss.org/browse/SEAMFORGE-51?page=com.atlassian.jira.plug...
]
Lincoln Baxter III closed SEAMFORGE-51.
---------------------------------------
Assignee: Lincoln Baxter III
Fix Version/s: 1.0.0.Alpha3
Resolution: Done
I solved this more generally by implementing prompts for Enum typed @Options:
[example] example $ persistence setup --provider FOO --container BAR
***INFO*** Could not parse [FOO]... please try again...
[provider=ARG (org.jboss.seam.forge.spec.jpa.api.JPAProvider)]:
1 - [HIBERNATE]
2 - [OPENJPA]
3 - [ECLIPSELINK]
Choose an option by typing the number of the selection: 1
***INFO*** Could not parse [BAR]... please try again...
[container=ARG (org.jboss.seam.forge.spec.jpa.api.JPAContainer)]:
1 - [JBOSS_6]
2 - [GLASSFISH_3]
3 - [CUSTOM_JDBC]
4 - [CUSTOM_JTA]
5 - [CUSTOM_NON_JTA]
Choose an option by typing the number of the selection: 2
Wrote /Users/lbaxter/Desktop/example/src/main/resources/META-INF/persistence.xml
[example] example $
Persistence plugin needs more informative help messages when
prompting for container and provider types
-------------------------------------------------------------------------------------------------------
Key: SEAMFORGE-51
URL:
https://issues.jboss.org/browse/SEAMFORGE-51
Project: Seam Forge
Issue Type: Enhancement
Components: Builtin Plugins
Affects Versions: 1.0.0.Alpha2
Reporter: Lincoln Baxter III
Assignee: Lincoln Baxter III
Fix For: 1.0.0.Alpha3
These messages are misleading, and without tab-completion, it is next to impossible to
tell what needs to be typed here.
[MyApp] MyApp $ persistence setup
[provider=ARG (org.jboss.seam.forge.spec.jpa.api.JPAProvider)]:
org.jboss.seam.forge.spec.jpa.api.JPAProvider
[container=ARG (org.jboss.seam.forge.spec.jpa.api.JPAContainer)]:
org.jboss.seam.forge.spec.jpa.api.JPAContainer
Wrote /forge-1.0.0.Alpha2/MyApp/src/main/resources/META-INF/persistence.xml
***SUCCESS*** Installed [forge.spec.jpa] successfully.
***ERROR*** [setup] null
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira