What exactly do you mean "written in Ant"??
Do you mean using Ant's Java Tasks directly from the Mojo Java?? That is
pretty easily done. There is info on using Ant from Java here
http://www-128.ibm.com/developerworks/websphere/library/techarticles/0502_gawor/0502_gawor.html

FWIW, what I've done is create a specialized Mojo that allows you to create
an Ant build.xml and then build a reusable Mojo that use it. I submitted
this into JIRA, but don't know if its been integrated yet. You can get the
code here (its attached to the Issue)...
http://jira.codehaus.org/browse/MNG-897
BTW: this code illustrates using Ant form Java...

Cheers,
-- Chris

On 12/23/05, Nitko2 <[EMAIL PROTECTED]> wrote:
>
> Chris, thank you for your answer.
> I know about antrun, and I've been using it. But it isn't what I need. I
> would like to write plugins
> using ant(mojos written in Ant), not execute ant build files.
> I can't find anything about that here
> http://maven.apache.org/guides/mini/guide-using-ant.html
>
> Filip
>
>
>
>
> Chris Berry wrote:
> > Hi Filip,
> > I think your best bet might be to checkout the Plugin from SVN. IMHO,
> this
> > is the best way to get the full picture as things are still in flux --
> and
> > the docs will likely not have caught up with the code.  Of course,
> you'll
> > need a Subversion Client (I use TortoiseSVN)
> >
> > AFAIK, this should work::
> > svn co
> > https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-antrun-plugin
> >
> > Some info here::
> > http://maven.apache.org/guides/mini/guide-using-ant.html
> >
> > And several posts on this list
> > Cheers,
> > -- Chris
> >
> > On 12/22/05, Nitko2 <[EMAIL PROTECTED]> wrote:
> >
> >>Hi,
> >>John Casey in 2.0.1 announcement mail said that 2.0.1 includes support
> for
> >>mojos written in Ant. Can
> >>someone point
> >>me to some documentation or JIRA issue or anything that would be useful
> >>info about this.
> >>
> >>Thanks,
> >>Filip
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to