What might be really useful is a small snippet of ant xml and the direct translation from the gradle world. I think I didn't see something like this in the user guide.
If someone rewrites ant scripts into gradle he will probably face some 'direct translation' job. Like when I 'translated' <pmd> target from build.xml and put it in build.gradle. Cheers, Szczepan Faber On Mon, Dec 22, 2008 at 3:09 PM, Hans Dockter <[email protected]> wrote: > > On Dec 22, 2008, at 2:43 PM, Haug Bürger wrote: > >> 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 > > Gradle is not shipped with an IDE ;) > >> 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. > > Those details might be not necessary I think, as long as the main principle > is made clear: The AntBuilder can be used exactly the same way as Ant, if a > simple notation transformation is applied. > >> This might be sufficient for a Groovy professional but not for me. I could >> not find out what happens here. > > I agree that Gradle should have a chapter on how to use Ant from Gradle. > >> How do I read the documentation? > > Your problem obviously is not about 'how to read' but about what is missing. > We spend quite a bit of time on our documentation. 80 pages means a lot of > work. But there is a lot of potential for improvement regarding to content > and structuring. > > Would you mind filing a Jira on this? > > - Hans > > -- > Hans Dockter > Gradle Project lead > http://www.gradle.org > > > > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
