Well, this used to be in the code snippets section at play framework’s site, but since the new site for play 2.0, it’s no longer there.
So I decided to write it down here, just to have it at reach, and in case it might be useful for others.
just place this in a .gitignore file
*~ *.swp .classpath .project .redcar/* .settings/* .DS_Store eclipse/* eclipse/classes/* precompiled/* tmp/* tmp/bytecode/* test-result/* server.pid
