If you want to run a Groovy script in Ant, you can either use the script task like this: ..
<script language="groovy">
//foo
</script>
..or the groovy task like that:
<groovy>
//foo
</groovy>
Both ways require the Groovy libraries to be downloaded. I found a promising looking Ant config that does this automatically in this answer: Execute my groovy script with ant or maven
Now for my question:
Which of the two Ant tasks is meant to be used for running Groovy scripts? script
or groovy
?
Also, what is the purpose of the "additional" groovy task, if there's a script task included in Ant that supports groovy?
Also I'd like to quote from a blog post I found here: http://jbetancourt.blogspot.co.at/2012/03/run-groovy-from-ants-script-task.html
Of course, why would you use the 'script' task when the 'groovy' task is available? You wouldn't.
Does anyone agree with the author of this post? If so - could you explain the idea behind it?