Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-2270

A quit command within scripts hangs Roo

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 1.1.2.RELEASE
    • Fix Version/s: 1.1.3.RELEASE
    • Component/s: @ ROO SHELL
    • Labels:
      None
    • Environment:
      Windows

      Description

      I was rerunning a script that Roo had generated and because it had quit in the middle of it, Roo hung. I accept there shouldn't be a quit in there, but that's what happens if you run roo multiple times in the same project. I know it is supposed to be a log, but maybe Roo could remove (or comment out) any trailing quit before adding new lines?

      The script was:

      // Spring Roo 1.1.2.RELEASE [rev fbc33bb] log opened at 2011-03-27 23:00:34
      project --topLevelPackage com.springsource.roo.songs --projectName rooSongs --java 6
      persistence setup --database HYPERSONIC_PERSISTENT --provider HIBERNATE
      quit
      entity --class ~.domain.Song --testAutomatically
      entity --class ~.domain.Artist --testAutomatically
      entity --class ~.domain.Album --testAutomatically
      entity --class ~.domain.Label --testAutomatically
      quit

      Output was:

      roo> script ..\log.roo
      // Spring Roo 1.1.2.RELEASE [rev fbc33bb] log opened at 2011-03-27 23:00:34
      project --topLevelPackage com.springsource.roo.songs --projectName rooSongs
      Created ROOT\pom.xml
      Created SRC_MAIN_JAVA
      Created SRC_MAIN_RESOURCES
      Created SRC_TEST_JAVA
      Created SRC_TEST_RESOURCES
      Created SRC_MAIN_WEBAPP
      Created SRC_MAIN_RESOURCES\META-INF\spring
      Created SRC_MAIN_RESOURCES\META-INF\spring\applicationContext.xml
      Created SRC_MAIN_RESOURCES\log4j.properties
      persistence setup --database HYPERSONIC_PERSISTENT --provider HIBERNATE
      Updated ROOT\pom.xml [Removed redundant artifacts]
      Updated SRC_MAIN_RESOURCES\META-INF\spring\applicationContext.xml
      Created SRC_MAIN_RESOURCES\META-INF\persistence.xml
      Created SRC_MAIN_RESOURCES\META-INF\spring\database.properties
      Updated ROOT\pom.xml [Added dependencies org.hsqldb:hsqldb:1.8.0.10, org.hib
      , org.hibernate.javax.persistence:hibernate-jpa-2.0-api:1.0.0.Final, org.hib
      lib:cglib-nodep:2.2, javax.transaction:jta:1.1, org.springframework:spring-j
      l:commons-pool:1.5.4, commons-dbcp:commons-dbcp:1.3]
      Updated ROOT\pom.xml [Added repository https://repository.jboss.org/nexus/co
      quit
      entity --class ~.domain.Song --testAutomatically
      C:\Users\chapmanp\Documents\workspace-sts-2.6.0.RELEASE\rooSongs>^C^C^C^C^C

      Note the attempt to use ctrl-C. I had to kill the Java process from the task manager.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stewarta Alan Stewart
              Reporter:
              paul.chapman Paul Chapman
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: