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

Last script line is not executed when using forge -e "run script.fsh"

    XMLWordPrintable

Details

    Description

      Having a script like:

      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
      

      After the last line is executed, exit is immediately called and the execution finishes, without executing the last command

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-ggastald George Gastaldi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: