Grails
  1. Grails
  2. GRAILS-5763

Property Override not applied on artefact reload

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2 final
    • Fix Version/s: 1.2.5, 1.3.5
    • Component/s: Configuration
    • Labels:
      None

      Description

      Hello,

      I a am trying to use Property Override Configuration as described in chapter 14.6. I have a service like this :

      class MyService {
      File submitDirectory
      ....
      }

      In Config.groovy, I put the following lines :

      beans {
      myService

      { submitDirectory = "/tmp/thedirectory/submit" as String }

      }

      This works: the String is correctly assigned as the File property in MyService. But in development mode, as soon as I modify MyService the submitDirectory field becomes null. It is as if the reload did not apply property overrides...

      Julien

        Activity

        Show
        Luke Daley added a comment - 1.3.x: http://github.com/grails/grails-core/commit/d8f80e472847fafd45346077ea936f0481e00e01 1.2.x: http://github.com/grails/grails-core/commit/aae90eaa9d35c22db803e01bb4c898b21c17d8a2

          People

          • Assignee:
            Luke Daley
            Reporter:
            Julien Faissolle
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development