Tagant

Perform XPath Queries inside Ant

P

Ant offers some XML features like the xslt task, which transforms XML files into other files. But unfortunately, with Ant you can’t make simple XPath Queries on a specific XML file.
 
Luckily, there is a nice open source solution called XmlTask, which offers many possibilities to work with XML files.
 

Download the latest version of XmlTask from

Use Groovy inside Ant

U

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...

Eclipse and Ant – They really get along very well!

E

Have you ever used your own custom ant task in the eclipse environment. Well – I have written some ant tasks and they are being used by all developers in our company. But there’s the annoying thing that I always have to add the libs containing my tasks to the classpath. Nothing easier than this you might be thinking. Add it to ants classpath in the eclipse preferences. This works on my machine but what about all other developers? What about updates to the libs? I guess I found the...

Recent Posts