Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-2240

project-new - Do not show from-archetype-catalog if there are no catalogs

    XMLWordPrintable

Details

    Description

      eg out of the box there is no archetype-catalogs registered, but if you choose no #7 in the project-new it would fail

      [forge-distribution-2.14.0.Final]$ project-new
      ***INFO*** Required inputs not satisfied, entering interactive mode
      ? Project name:  mydemo
      ? Top level package [org.mydemo]:
      ? Version [1.0.0-SNAPSHOT]:
      ? Final name:
      ? Project location [/opt/forge-distribution-2.14.0.Final]:
      
      [0] (x) war
      [1] ( ) jar
      [2] ( ) parent
      [3] ( ) addon
      [4] ( ) resource-jar
      [5] ( ) ear
      [6] ( ) from-archetype
      [7] ( ) from-archetype-catalog
      
      Press <ENTER> to confirm, or <CTRL>+C to cancel.
      ? Project type: [0-7] 7
      
      [0] (x) Maven
      
      Press <ENTER> to confirm, or <CTRL>+C to cancel.
      ? Build system: [0]
      ***ERROR*** Catalog must be specified.
      ***ERROR*** Archetype must be specified.
      

      So I think project-new should hide [7] if there is no catalogs, eg archetype-list is empty.

      Attachments

        Activity

          People

            rhn-support-ggastald George Gastaldi
            cibsen@redhat.com Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: