Hi,

The groovyc ant task (org.codehaus.groovy.ant.Groovyc) is quite noicy printing the classpath etc. when invoked. Some Ant tasks have a quiet option that silences the non-error output which would be nice here.

Even though it is possible to do

def ant = new AntBuilder()
ant.taskdef(name:'groovyc',classname:'org.codehaus.groovy.ant.Groovyc')
def listener = ant.getBuildListeners().firstElement()
def oldLevel = listener.getMessageOutputLevel()listener.setMessageOutputLevel(1)

ant.groovyc(
    srcdir:'src/test/groovy',
    destdir:'out/testClasses',
    classpath:'testPath',
    targetBytecode:"21" )

listener.setMessageOutputLevel(oldLevel)

I think it would be nicer to be able to just do

ant.groovyc(
    srcdir:'src/test/groovy',
    destdir:'out/testClasses',
    classpath:'testPath',
    targetBytecode:"21" quiet: true )

Would it be acceptable if I submitted a PR for adding a quiet parameter to the groovyc task?

Best regards,

Per

Reply via email to