Since I'm not happy with either Ant nor Maven I was looking for
alternatives.
I tried with Gradle 0.5. I started with a simple task, create a simple
web service
client with the integrated JAX-WS of JDK 6.

To make it short, I failed. I'm used to press Ctrl-Space and get the
attributes
of an object. I didn't expect that for a 0.5 release but I do expect an API
documentation.

I found a code snippet on the net:
ant {
    taskdef(name: 'wsimport',
    classname: 'com.sun.tools.ws.ant.WsImport'),
    classpath: dependencies.antpath('lib')
}

I look at the Gradle doc and found:

groovy.util.AntBuilder ant(groovy.lang.Closure configureClosure)

Executes the given closure against the AntBuilder for this project. You can use 
this in your build file to execute ant tasks.
You can call this method in your build file using ant followed by a code block.

Parameters:
configureClosure - The closure to execute against the AntBuilder. The
closure receives no paramters.

Wow, that solved all my questions! Just joking. There was at least a
hint to something called AntBuilder. Searching Gradle API for
AntBuilder, not found. Might be some Groovy thing, found a
groovy.util.AntBuilder. But there is no taskdef, no classname, no
classpath in the poor documentation. This might be sufficient for a
Groovy professional but not for me. I could not find out what happens here.

How do I read the documentation?



Reply via email to