Antonio Goncalves created FORGE-2372:
----------------------------------------
Summary: The scaffold provider should be mandatory when there are more than
one
Key: FORGE-2372
URL:
https://issues.jboss.org/browse/FORGE-2372
Project: Forge
Issue Type: Sub-task
Components: Scaffold
Affects Versions: 2.16.2.Final
Reporter: Antonio Goncalves
Fix For: 2.x Future
After installing a few addons, including Angular, I use the {{scaffold-generate}} command
thinking that it would use Faces, but it generates an Angular app. In this cas, the
{{provider}} attribute should become mandatory .
{code}
$ scaffold-generate
--provider --webRoot --targets --generateRestResources
{code}
Script that reproduces it :
{code}
$ addon-list
org.jboss.forge.addon:angularjs,2.1.5-SNAPSHOT
org.jboss.forge.addon:scaffold,2.16.1.Final
org.jboss.forge.addon:scaffold-faces,2.16.1.Final
org.jboss.forge.addon:scaffold-spi,2.16.1.Final
$ project-new --named demo
$ jpa-new-entity --named MyEntity
$ scaffold-generate --targets org.demo.model.MyEntity
***SUCCESS*** CDI has been installed.
***SUCCESS*** EJB has been installed.
***SUCCESS*** Servlet API has been installed.
***SUCCESS*** JAX-RS has been installed.
***SUCCESS*** Scaffold was generated successfully.
{code}
A {{RestApplication}} class is generated,
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)