[forge-issues] [JBoss JIRA] (FORGE-2700) Forge interactive mode not responding while running a script

Philipp Jenni (JIRA) issues at jboss.org
Mon Nov 21 09:17:00 EST 2016


Philipp Jenni created FORGE-2700:
------------------------------------

             Summary: Forge interactive mode not responding while running a script
                 Key: FORGE-2700
                 URL: https://issues.jboss.org/browse/FORGE-2700
             Project: Forge
          Issue Type: Bug
          Components: Builtin Plugins
    Affects Versions: 3.3.3.Final, 3.3.1.Final
         Environment: - windows 10
- cmd.exe or powershell or forge console inside eclipse (behavior everywhere the same)
            Reporter: Philipp Jenni


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.
Testet with cmd.exe or powershell or forge console inside eclipse (behavior everywhere the same in windows).

See console output:

{code:java}
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
{code}




--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the forge-issues mailing list