[JBoss JIRA] (FORGE-1640) Cannot execute a command on several lines
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1640?page=com.atlassian.jira.plugin... ]
George Gastaldi closed FORGE-1640.
----------------------------------
Resolution: Done
> Cannot execute a command on several lines
> -----------------------------------------
>
> Key: FORGE-1640
> URL: https://issues.jboss.org/browse/FORGE-1640
> Project: Forge
> Issue Type: Sub-task
> Security Level: Public(Everyone can see)
> Components: UI - Shell
> Affects Versions: 2.1.1.Final
> Reporter: Antonio Goncalves
> Assignee: George Gastaldi
> Fix For: 2.7.1.Final
>
>
> I have the following script (notice the ';' at the end) which executes fine with the run command :
> {code}
> java-new-enum --named Language --targetPackage com.test.model ;
> {code}
> But if I have the same command on several lines, it doesn't work anymore (so the ';' doesn't seem to mark the end of line)
> {code}
> java-new-enum
> --named Language
> --targetPackage com.test.model ;
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (FORGE-1640) Cannot execute a command on several lines
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1640?page=com.atlassian.jira.plugin... ]
George Gastaldi edited comment on FORGE-1640 at 7/9/14 3:27 PM:
----------------------------------------------------------------
Fixed, you need to add a backslash to the end of each line for that to work:
Eg:
{code}
java-new-enum \
--named Language \
--targetPackage com.test.model ;
{code}
was (Author: gastaldi):
Fixed, you need to add a {{\}} to the end of each line for that to work:
Eg:
{code}
java-new-enum \
--named Language \
--targetPackage com.test.model ;
{code}
> Cannot execute a command on several lines
> -----------------------------------------
>
> Key: FORGE-1640
> URL: https://issues.jboss.org/browse/FORGE-1640
> Project: Forge
> Issue Type: Sub-task
> Security Level: Public(Everyone can see)
> Components: UI - Shell
> Affects Versions: 2.1.1.Final
> Reporter: Antonio Goncalves
> Assignee: George Gastaldi
> Fix For: 2.7.1.Final
>
>
> I have the following script (notice the ';' at the end) which executes fine with the run command :
> {code}
> java-new-enum --named Language --targetPackage com.test.model ;
> {code}
> But if I have the same command on several lines, it doesn't work anymore (so the ';' doesn't seem to mark the end of line)
> {code}
> java-new-enum
> --named Language
> --targetPackage com.test.model ;
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (FORGE-1640) Cannot execute a command on several lines
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1640?page=com.atlassian.jira.plugin... ]
George Gastaldi reopened FORGE-1640:
------------------------------------
> Cannot execute a command on several lines
> -----------------------------------------
>
> Key: FORGE-1640
> URL: https://issues.jboss.org/browse/FORGE-1640
> Project: Forge
> Issue Type: Sub-task
> Security Level: Public(Everyone can see)
> Components: UI - Shell
> Affects Versions: 2.1.1.Final
> Reporter: Antonio Goncalves
> Assignee: George Gastaldi
> Fix For: 2.7.1.Final
>
>
> I have the following script (notice the ';' at the end) which executes fine with the run command :
> {code}
> java-new-enum --named Language --targetPackage com.test.model ;
> {code}
> But if I have the same command on several lines, it doesn't work anymore (so the ';' doesn't seem to mark the end of line)
> {code}
> java-new-enum
> --named Language
> --targetPackage com.test.model ;
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (FORGE-1640) Cannot execute a command on several lines
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1640?page=com.atlassian.jira.plugin... ]
George Gastaldi closed FORGE-1640.
----------------------------------
Assignee: George Gastaldi
Fix Version/s: 2.7.1.Final
(was: 2.x Future)
Resolution: Done
Fixed, you need to add a {{\}} to the end of each line for that to work:
Eg:
{code}
java-new-enum \
--named Language \
--targetPackage com.test.model ;
{code}
> Cannot execute a command on several lines
> -----------------------------------------
>
> Key: FORGE-1640
> URL: https://issues.jboss.org/browse/FORGE-1640
> Project: Forge
> Issue Type: Sub-task
> Security Level: Public(Everyone can see)
> Components: UI - Shell
> Affects Versions: 2.1.1.Final
> Reporter: Antonio Goncalves
> Assignee: George Gastaldi
> Fix For: 2.7.1.Final
>
>
> I have the following script (notice the ';' at the end) which executes fine with the run command :
> {code}
> java-new-enum --named Language --targetPackage com.test.model ;
> {code}
> But if I have the same command on several lines, it doesn't work anymore (so the ';' doesn't seem to mark the end of line)
> {code}
> java-new-enum
> --named Language
> --targetPackage com.test.model ;
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (FORGE-1928) Command to change the type of a project after new-project
by Yoel Benharrous (JIRA)
[ https://issues.jboss.org/browse/FORGE-1928?page=com.atlassian.jira.plugin... ]
Yoel Benharrous updated FORGE-1928:
-----------------------------------
Summary: Command to change the type of a project after new-project (was: Comand )
Description:
After a new-project command, it will be nice to change the type of the project.
What is the best option. Add an update-project command?
Affects: User Experience
> Command to change the type of a project after new-project
> ---------------------------------------------------------
>
> Key: FORGE-1928
> URL: https://issues.jboss.org/browse/FORGE-1928
> Project: Forge
> Issue Type: Enhancement
> Security Level: Public(Everyone can see)
> Components: Builtin Plugins
> Affects Versions: 2.7.0.Final
> Reporter: Yoel Benharrous
>
> After a new-project command, it will be nice to change the type of the project.
> What is the best option. Add an update-project command?
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (FORGE-1928) Comand
by Yoel Benharrous (JIRA)
Yoel Benharrous created FORGE-1928:
--------------------------------------
Summary: Comand
Key: FORGE-1928
URL: https://issues.jboss.org/browse/FORGE-1928
Project: Forge
Issue Type: Enhancement
Security Level: Public (Everyone can see)
Components: Builtin Plugins
Affects Versions: 2.7.0.Final
Reporter: Yoel Benharrous
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (FORGE-1802) Console hangs when running an invalid script
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1802?page=com.atlassian.jira.plugin... ]
George Gastaldi closed FORGE-1802.
----------------------------------
Resolution: Done
> Console hangs when running an invalid script
> --------------------------------------------
>
> Key: FORGE-1802
> URL: https://issues.jboss.org/browse/FORGE-1802
> Project: Forge
> Issue Type: Sub-task
> Security Level: Public(Everyone can see)
> Components: UI - Shell
> Affects Versions: 2.5.0.Final
> Reporter: Antonio Goncalves
> Assignee: George Gastaldi
> Priority: Blocker
> Fix For: 2.7.1.Final
>
>
> I am executing a script (with the {{run}} command) and the console hanged and stopped working completely (I had to kill the process). I realized that there is an error in the script (missing {{;}} at the end of line {{--named ISBN}}).
> Take the following script, and save it on a {{hangs.fsh}} file
> {code}
> # ##################### #
> # Creates a new project #
> # ##################### #
> project-new --named cdbookstore --topLevelPackage org.agoncal.training.javaee6adv --type war --finalName cdbookstore ;
> # Setup the persistence unit in persistence.xml
> # ############
> jpa-setup --persistenceUnitName cdbookstorePU ;
> # ######################## #
> # Creates the domain model #
> # ######################## #
> # ISBN constraint
> # ############
> constraint-new-annotation --named ISBN
> # Genre entity
> # ############
> jpa-new-entity --named Genre ;
> jpa-new-field --named name --length 100 ;
> {code}
> Now, execute the script, and see the error message :
> {code}
> [temp]$ run hangs.fsh
> project-new --named cdbookstore --topLevelPackage org.agoncal.training.javaee6adv --type war --finalName cdbookstore ;
> ***SUCCESS*** Project named 'cdbookstore' has been created.
> [cdbookstore]$ jpa-setup --persistenceUnitName cdbookstorePU ;
> ***SUCCESS*** Persistence (JPA) is installed.
> [cdbookstore]$ constraint-new-annotation --named ISBN
> ***SUCCESS*** Bean Validation Constraint Annotations org.agoncal.training.javaee6adv.constraints.ISBN was created
> [ISBN.java]$ jpa-new-entity --named Genre ;
> Exception when parsing/running: jpa-new-entity --named Genre , org.jboss.forge.roaster.model.impl.JavaAnnotationImpl cannot be cast to org.jboss.forge.roaster.model.MemberHolder
> [ISBN.java]$
> {code}
> At this point, I can't interact with the console and need to kill the process.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (FORGE-1802) Console hangs when running an invalid script
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1802?page=com.atlassian.jira.plugin... ]
Work on FORGE-1802 started by George Gastaldi.
> Console hangs when running an invalid script
> --------------------------------------------
>
> Key: FORGE-1802
> URL: https://issues.jboss.org/browse/FORGE-1802
> Project: Forge
> Issue Type: Sub-task
> Security Level: Public(Everyone can see)
> Components: UI - Shell
> Affects Versions: 2.5.0.Final
> Reporter: Antonio Goncalves
> Assignee: George Gastaldi
> Priority: Blocker
> Fix For: 2.7.1.Final
>
>
> I am executing a script (with the {{run}} command) and the console hanged and stopped working completely (I had to kill the process). I realized that there is an error in the script (missing {{;}} at the end of line {{--named ISBN}}).
> Take the following script, and save it on a {{hangs.fsh}} file
> {code}
> # ##################### #
> # Creates a new project #
> # ##################### #
> project-new --named cdbookstore --topLevelPackage org.agoncal.training.javaee6adv --type war --finalName cdbookstore ;
> # Setup the persistence unit in persistence.xml
> # ############
> jpa-setup --persistenceUnitName cdbookstorePU ;
> # ######################## #
> # Creates the domain model #
> # ######################## #
> # ISBN constraint
> # ############
> constraint-new-annotation --named ISBN
> # Genre entity
> # ############
> jpa-new-entity --named Genre ;
> jpa-new-field --named name --length 100 ;
> {code}
> Now, execute the script, and see the error message :
> {code}
> [temp]$ run hangs.fsh
> project-new --named cdbookstore --topLevelPackage org.agoncal.training.javaee6adv --type war --finalName cdbookstore ;
> ***SUCCESS*** Project named 'cdbookstore' has been created.
> [cdbookstore]$ jpa-setup --persistenceUnitName cdbookstorePU ;
> ***SUCCESS*** Persistence (JPA) is installed.
> [cdbookstore]$ constraint-new-annotation --named ISBN
> ***SUCCESS*** Bean Validation Constraint Annotations org.agoncal.training.javaee6adv.constraints.ISBN was created
> [ISBN.java]$ jpa-new-entity --named Genre ;
> Exception when parsing/running: jpa-new-entity --named Genre , org.jboss.forge.roaster.model.impl.JavaAnnotationImpl cannot be cast to org.jboss.forge.roaster.model.MemberHolder
> [ISBN.java]$
> {code}
> At this point, I can't interact with the console and need to kill the process.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months