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

~ (tilde) broken in Roo scripts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 1.2.2.RELEASE
    • Component/s: @ ROO SHELL
    • Labels:
      None
    • Environment:
      Win7 64-bit running 32-bit STS 2.9.1 (but IMO this is NOT a Windows issue). This was woking in STS 2.8.M2 (which is the last one I used).

      Description

      In STS 2.9.1, create a Roo project and run the following roo script:

      jpa setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
      web mvc setup
      enum type --class ~.domain.enums.Roles
      enum constant --name ROLE_ADMIN
      entity jpa --class ~.domain.Person
      field enum --fieldName roles --type ~.domain.enums.Roles --notNull
      entity jpa --class ~.domain.Keptfile

      NOTE top.level.domain.Person will be created correctly
      BUT top.level.domain.domain.Keptfile will be created (which is incorrect)

      Worse, this confusion continues AFTER a restart of STS!
      Just try the line: "entity jpa --class ~.domain.Keptfile2".

      If you remove the line "field enum --fieldName ..." and create a new project, the problem will not appear. However this always worked in STS 2.8.M2 and earlier.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              aswan Andrew Swan
              Reporter:
              rogerpf Roger Pfister
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: