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

Forge interactive mode not responding while running a script

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 3.3.1.Final, 3.3.3.Final
    • Builtin Plugins
    • None

      If you check out the tutorial at http://forge.jboss.org/document/hands-on-lab you will find the script https://github.com/forge/docs/blob/master/tutorials/forge-hol/scripts/generate.fsh.

      During the execution of this script forge switches to "interactive mode" because some inputs where not given (until yesterday, I fixed this with https://github.com/forge/docs/commit/42fa67ed330b5b50b9f995bc03262e98a102ac8f).
      However, the script should also work without my patch but in the interactive mode the console does not accept any inputs from the user.
      Tested with cmd.exe or powershell or forge console inside eclipse (behavior everywhere the same in windows).

      See console output:

      C:\Workspace\test>forge
      Using Forge at C:\DevTools\forge-distribution-3.3.3.Final\bin\..
      
          _____
         |  ___|__  _ __ __ _  ___
         | |_ / _ \| `__/ _` |/ _ \  \\
         |  _| (_) | | | (_| |  __/  //
         |_|  \___/|_|  \__, |\___|
                         |__/
      
      JBoss Forge, version [ 3.3.3.Final ] - JBoss, by Red Hat, Inc. [ http://forge.jboss.org ]
      Hit '<TAB>' for a list of available commands.
      and 'man [cmd]' for help on a specific command.
      
      To quit the shell, type 'exit'.
      
      [test]$ run generate.fsh
      project-new --named petstore --top-level-package org.jboss.forge.hol.petstore --type war --final-name petstore --version 7.0 ;
      ***SUCCESS*** Project named 'petstore' has been created.
      [petstore]$ javaee-setup --java-ee-version 7;
      ***SUCCESS*** JavaEE 7 has been installed.
      [petstore]$ jpa-setup --persistence-unit-name applicationPetstorePU --jpa-version 2.1 ;
      ***SUCCESS*** Persistence (JPA) is installed.
      
      ...
      
      
      ***SUCCESS*** Class org.jboss.forge.hol.petstore.service.StatisticService was created
      [StatisticService.java]$ java-new-interface --named ComputablePurchaseOrder --target-package ~.service ;
      ***SUCCESS*** Interface org.jboss.forge.hol.petstore.service.ComputablePurchaseOrder was created
      [ComputablePurchaseOrder.java]$ cdi-new-decorator --named PurchaseOrderDecorator --delegate org.jboss.forge.hol.petstore.service.ComputablePurchaseOrder --target-package ~.service ;
      ***SUCCESS*** CDI Decorator org.jboss.forge.hol.petstore.service.PurchaseOrderDecorator was created
      [PurchaseOrderDecorator.java]$ scaffold-generate --targets org.jboss.forge.hol.petstore.model.Country ;
      ***INFO*** Required inputs not satisfied, entering interactive mode
      
      [0] ( ) Faces
      [1] ( ) AngularJS
      
      Press <ENTER> to confirm, or <CTRL>+C to cancel.
      * Scaffold Type: [0-1] ---> I CANNOT ENTER ANYTHING HERE
      

              Unassigned Unassigned
              philippjenni Philipp Jenni (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: