glob all the *.class files, not just the ones named after the initial script name

When you compile script.groovy, it'll create the script.class (and class files for the closures), and also a CSVParser class. And your Ant builder build would only include script*.class files in the JAR, thus excluding the CSVParser.class file.