Line counting - how to exclude a folder?
===

I'm using bash to count my lines of source in a project. Here's the code:

    #!/bin/bash
    find . -name '*.java' | xargs wc -l
    find . -name '*.xml' | xargs wc -l
I want to exclude files from the ./gen folder. I think it's something to do with 'prune', but I can't figure out how to do it.