Use Groovy inside Ant


There are some kind of tasks, which Ant won’t do. One of them is the loop. There is no simple way to implement a dynamic for or while loop in Ant. What do i mean with dynamic? Let me make an example. Ant reads out a number of iterations from a property file (we call it the number x) and should perform a loop x-times to call another Ant task. And this can only hardly be done with Ant. But fortunately, there is Groovy. Groovy is a scripting language, which runs in a Java Virtual Machine...

Recent Posts