Results 1 to 3 of 3

Thread: Extrange behaviour of dots in external .properties

Hybrid View

  1. #1
    Join Date
    Nov 2010
    Posts
    13

    Unhappy Extrange behaviour of dots in external .properties

    Hello,

    We've just encountered a strange issue with an external properties file.
    We have the properties in grails-app/conf and we do include it in the Config.groovy.

    It was working fine until we downloaded code from the cvs repository. After that, it seems that you can't get properties that are separated by dots. For example grailsApplication.config.gestion.numElementos returns [:] but grailsApplication.config.numElementos returns the text set in the properties.

    In addition, the same code is working ok in another computer, the one that uploaded the changes to the cvs repository.

    Grails version is 1.3.5

    Any ideas why is this happening and how to solve it?

    Thanks

  2. #2
    Join Date
    Jun 2010
    Location
    London
    Posts
    304

    Default

    Just out of interest, can you access grailsApplication.config.'gestion.numElementos'?

    I've not heard of such a problem and plenty of people use the external configuration feature. If you could create a reproducible example then please attach it to a JIRA issue so we can take a look.

  3. #3
    Join Date
    Nov 2010
    Posts
    13

    Smile Extrange behaviour of dots in external .properties

    Sorry, I forgot to close the post or at least say that finally it worked, but we don't know why. After some hours and some resets it worked without changing anything.
    It's really weird, but at least it's gone. If we encounter again the problem I'll let you know.
    Thanks for your help

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •