#!/bin/bash
#===============================================================================
#
#          FILE:  search-code.sh
# 
#         USAGE:  search-code.sh pattern
# 
#   DESCRIPTION:  Do a grep on all the java and groovy files
#===============================================================================

grep $* `find bin grails-app test webtest/tests src/java src/groovy scripts -type f | egrep -v '\.svn|\.swp$|CVS' |egrep 'groovy$|java$|gsp$|jjt$'`
