Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1926 Adding more commands to Forge and improve existing ones
  3. FORGE-2372

The scaffold provider should be mandatory when there are more than one

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.Beta2
    • 2.16.2.Final
    • Scaffold
    • None

      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 .

      $ scaffold-generate 
      --provider  --webRoot  --targets  --generateRestResources  
      

      Script that reproduces it :

      $ 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.
      

      A RestApplication class is generated,

              rhn-support-ggastald George Gastaldi
              agoncal Antonio Goncalves (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: