0

I am working on a project using Groovy and Gaelyk. I want to organize my files in different folders inside of /src/main/WEB-INF/groovy.

It works when I put all files in the same folder, but not when I put them into different folders. Maybe changing the build config?

Any ideas?

Benjamin Muschko
  • 32,442
  • 9
  • 61
  • 82
VMOrtega
  • 1,948
  • 3
  • 18
  • 22
  • What exactly doesn't work? Please provide an example directory tree of your project, the contents of your `routes.groovy` and how you try to invoke it in the browser. – Benjamin Muschko Mar 02 '13 at 13:02
  • /src/main/WEB-INF/groovy /controllers => my controllers /datastores ==> my data objects and my routes is like /login => /controllers/login.groovy – VMOrtega Mar 02 '13 at 17:23

1 Answers1

1

When you put .groovy files in different directories you need to include the package declaration in the .groovy to match the directory structure.

kdabir
  • 9,623
  • 3
  • 43
  • 45