Ant usage in Gradle projects, with XMLBeans as an example

Porjects, which are running on Ant today, can also think about a movement to Gradle. This is of course the point of view in the Gradle community. Gradle deliver an Ant and Maven integration. That is one reason, why you get the current Ant version installed on your machine, when running the commandgradle -v.

------------------------------------------------------------
Gradle 1.4
------------------------------------------------------------

Gradle build time: Montag, 28. Januar 2013 03:42 Uhr UTC
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.8.4 compiled on May 22 2012
Ivy: 2.2.0
JVM: 1.7.0_17 (Oracle Corporation 23.7-b01)
OS: Mac OS X 10.8.3 x86_64

In Gradle scripts you can link Ant tasks, or you can call Ant commands. Here now an example, how to use Ant taskdef within Gradle, and as exmaple the Apache XML Beans lib is used. XML Beans is a JAXB implementation.
Ant usage in Gradle projects, with XMLBeans as an example weiterlesen