Announcement Announcement Module
No announcement yet.
Grails Test Code Problem Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Grails Test Code Problem

    I am using Grails 1.3.7 , the problem that I am facing with is I have some configuration files that I load in web application from classpath. However these files are not from main source code , normally remain in lib folder of tomcat. I use test/unit/resources folder to keep my test version of config files there. but now those are compiled into web-inf/classes folder therefore overriding my correct config and whole application.

    I am not sure if this is delibrate or it is bug. However can anyone help me about how can I selectively specify if I do not want some code in production.

  • #2
    Ah! This is from an IDE, yes? I suggest you configure your IDE to compile to a completely different directory, such as 'bin' or 'eclipse'.


    • #3
      STS and same is true for other installations of eclipse.