7

Which directories/files should be excluded when placing a Grails application under version control? I don't want non-source files or artifacts to be carried in SVN for my project.

jamz
  • 4,991
  • 4
  • 24
  • 19
  • I got so pissed of at Subversion when using Grails that I switched to Mercurial. Making SVN ignore all those runtime created Grails files was a nightmare! – Kimble Jun 09 '09 at 11:31

3 Answers3

6

here's my .gitignore (it probably contains alot of junk)

.idea/
stacktrace.log
test/reports/
etc/errors.txt
bin-groovy/
.classpath
.project
*.war
web-app/plugins/
web-app/resources/
classes/
test/reports/

Note that this is for grails 1.1.1. (I think before grails 1.1, plugins were stored in /plugins instead of web-app/plugins.

Miguel Ping
  • 18,082
  • 23
  • 88
  • 136
5

Grails.org has specific instructions on checking your project into SVN.

Ben Williams
  • 2,297
  • 2
  • 19
  • 15
0

You should exclude the "test/reports" directory in your root folder. It's also useful to exclude "stacktrace.log".

If you are using JS-Libraries you could think of excluding them too and write a little script for always getting the latest bugfix version. Modern JS-Libraries can be very large and it's not very useful to clutter your VCS with old versions of your frameworks. An exception is a jump to a new major version of a library or a tag. In this case you should definitely keep an old version.