BURGHARD Éric wrote:
Hi,

I've just commited a set of tools [1] for maven (plugin, extensions and
archetype) that can ease a migration from ant to maven (thanks to groovy ant
extension) or just help you to write new plugins directly in groovy.

Cool, that's awesome!

Maybe we can work to get some of this code in the repositories.

As for the plexus stuff we can set you up an account at Codehaus (if you don't already have one) and I can definitely push your archetypes into Maven's SVN.

I also see that you have a jelly mojo? Is that working?

For those who wonder, here is a quick example which use the ant xslt task on
a fileset

+---
def ant = new AntBuilder()

def files = ant.fileScanner {
        fileset(dir: srcDir) {
                include(name: "**/*.xml")
        }
}

for (src in files) {
        def dst = new File(dstDir, src.name)
        ant.xslt(in: src.path, out: dst.path, style: myxsl.path, processor:
"trax")
}
+---

The beautifull thing here is that you can add dependency to whatever
processor you want in your pom.xml (saxon8, xalan). Maven handle all
dependencies transparently, ant's task choose the first processor
available, thus the exactly same code (.class) handle a xslt 1.0 or 2.0
transformation (welcome to the jar heaven).

I've added 2 extensions to maven :
 * plexus-compiler-groovyc which allow you to compile your .groovy(s)
transparently with the maven-compiler-plugin (during mvn compile)
 * maven-plugin-tools-javalike which can parse (with some
limitations) .groovy (and .java) to generate your plugin's descriptor (mvn
plugin:descriptor)

One plugin :
 * maven-groovyc-plugin which add a groovyc:compile goal to compile .groovy
(sometime more flexile than plexus-compiler-groovyc). It's a good example of
a native groovy plugin

And one archetype which ease the starting of new groovy plugin projects :
 * maven-archetype-groovymojo

All that stuff is available on a svn repository [1]. Each component had a
quick install documentation (mvn site).

[1] https://tagloo.no-ip.info/svn/public/

Regards.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--

jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org

A party which is not afraid of letting culture,
business, and welfare go to ruin completely can
be omnipotent for a while.

  -- Jakob Burckhardt

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to