0

I have a GSP I am using for my Jasmine Test Spec. I would like to prevent this from being included in the war in certain environments (say production).

Is there a way to exclude gsp views in a war given an environment?

Jackie
  • 21,969
  • 32
  • 147
  • 289
  • Do you want it excluded entirely from the WAR or just when the WAR is run with the production environment? – Joshua Moore Aug 22 '14 at 15:29
  • From an abstract perspective I want it to just give a 404 in prod. I would suspect the easiest way is to somehow exclude it from being included in the war in that env. I want it accessible in all other environments. – Jackie Aug 22 '14 at 15:33
  • Here is a pretty good solution to your question: http://stackoverflow.com/questions/10168179/deleting-plugins-views-gsp-when-building-the-war and also related: http://stackoverflow.com/questions/8564720/how-to-exclude-a-resource-from-the-war-file-in-grails-2-0 – Joshua Moore Aug 22 '14 at 17:51

0 Answers0