Le vendredi 3 août 2007, Developer Abe a écrit :
> I quickly glanced through the ant tasks docs.  I will revist the docs.
>
> What I am hoping for is a way to incorporate an ant build script which
> calls specific tasks in Maven and can return the result of the tasks back
> to my project-level ant build script so the overall ant build is aware of
> test failures or build success.
You'll have to vote for MANTTASKS-71.
I don't understand how launching Maven through Ant will change anything for 
your build engineers: if you build your app with Maven, launching Maven by 
Ant won't change anything.

Now, if you launch mvn or mvn.bat with exec task, you'll have to set 
resultproperty attribute, which is documented as follow: "the name of a 
property in which the return code of the command should be stored. Only of 
interest if failonerror=false."

>
> Merci Beaucoup,
de rien

Hervé

> Abe
>
> On 8/3/07, Hervé BOUTEMY <[EMAIL PROTECTED]> wrote:
> > Le vendredi 3 août 2007, Developer Abe a écrit :
> > > I have a web based app (using appfuse) which is built by Maven.
> > >
> > > I am trying to deploy the project in a large scale build environment
> >
> > which
> >
> > > is using Ant exclusively.  The build engineers are hesitant about using
> > > Maven because they do not have any expertise in Maven.
> > >
> > > I was wondering if there is an easy way to incorporate my web module
> >
> > into
> >
> > > the overall Ant build.
> > >
> > > I am not a Ant build guru by any means.
> > >
> > > I looked into the exec task but I was wondering how it would notify the
> >
> > ant
> >
> > > build of test failures when running Maven tasks.
> > >
> > > Any guidance would be greatly appreciated.
> > >
> > > Regards,
> > > Abe
> >
> > Did you have a look at Maven Ant Tasks?
> > http://maven.apache.org/ant-tasks.html
> > With them, you can incorporate Maven's dependency management into an Ant
> > buildfile, and only dependency management: that's a limited level of
> > integration that should help with hesitant build engineers because they
> > keep
> > total control on the build process.
> >
> > If you want to use more Maven features with these tasks, you'll have to
> > vote
> > for http://jira.codehaus.org/browse/MANTTASKS-71: it is not implemented
> > yet.
> >
> > Regards,
> >
> > Hervé
> >
> > ---------------------------------------------------------------------
> > 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