You are basically correct - just write a Mojo that mirrors the ant task.  you can leave out the getters and setters and throw a slightly different exception but that's about the only difference.

Kind regards,
Dave Sag




 


Brill Pappin <[EMAIL PROTECTED]> wrote on 27-11-2005 01:25:16:

> I'm about to embark on writing a maven 2 plugin for Antenna.
>
> Antenna has existing Ant tasks defined (in fact its an Ant task lib).
>
> In Maven 1 it was fairly easy to implement a Maven plugin using ant tasks
> because you could simple call them int he plugin... how would that type of
> conversion be done for Maven 2?
>
> So far the best I can see is to create a new Mojo that mirrors the Ant
> task(s).
>
> Is there documentation some place on converting an Ant task to a maven goal?

Reply via email to