George Gastaldi created FORGE-2001:
--------------------------------------
Summary: Last script line is not executed when using forge -e "run
script.fsh"
Key: FORGE-2001
URL:
https://issues.jboss.org/browse/FORGE-2001
Project: Forge
Issue Type: Bug
Components: Forge Scripting Language
Affects Versions: 2.9.2.Final
Reporter: George Gastaldi
Fix For: 2.x Future
Having a script like:
{code}
project-new --named MyLibrary --topLevelPackage com.sopra.demo --type war ;
jpa-setup --container JBOSS_EAP6 --provider Hibernate ;
jpa-new-entity --named Book ;
jpa-new-field --named title ;
jpa-new-field --named ISBN ;
jpa-new-field --named summary --length 2000 ;
jpa-new-field --named published --type java.util.Date ;
constraint-setup --providers Hibernate ;
constraint-add --onProperty title --constraint NotNull ;
constraint-add --onProperty ISBN --constraint NotNull ;
constraint-add --onProperty summary --constraint Size --max 2000 ;
jpa-new-entity --named Author ;
jpa-new-field --named firstname ;
jpa-new-field --named lastname ;
jpa-new-field --named bio --length 2000 ;
jpa-new-field --named birthdate --type java.util.Date ;
jpa-new-field --named books --type com.sopra.demo.model.Book --relationshipType
One-to-Many --inverseFieldName author ;
constraint-add --onProperty firstname --constraint NotNull ;
constraint-add --onProperty lastname --constraint NotNull ;
constraint-add --onProperty bio --constraint Size --max 2000 ;
scaffold-setup
scaffold-generate --targets com.sopra.demo.model.Book com.sopra.demo.model.Author
{code}
After the last line is executed, {{exit}} is immediately called and the execution
finishes, without executing the last command
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)