I thought ant:exec accepts env settings

http://ant.apache.org/manual/index.html

-Dan


On 2/12/06, Xavier Galleri <[EMAIL PROTECTED]> wrote:
>
> Ok, it gets working eventually, both with the latest mvn.bat and your
> solution (tracked too by
> http://jira.codehaus.org/browse/MNG-2002).
>
> Thx a lot!
> -Xavier
>
> P.S.: as for setting an env var in ant, it's not possible as far as I
> know. Thus, I wrote another batch file to be called by the "exec" ant task.
> Any other idea?
>
> -----Original Message-----
> From: dan tran [mailto:[EMAIL PROTECTED] <[EMAIL PROTECTED]>]
> Sent: 10 February 2006 19:39
> To: Maven Users List
> Subject: Re: Calling mvn from ant does not propagate errors
>
> sorry, it wont work unless you get the lastest mvn.bat from 2.0.x in svn
> trunk
>
>
> http://svn.apache.org/repos/asf/maven/components/branches/maven-2.0.x/maven-core/src/bin/
>
> On 2/10/06, dan tran <[EMAIL PROTECTED]> wrote:
> >
> > looking at mvn.bat, if you pass in env variable MAVEN_TERMINATE_CMD=on
> > into ant's exec
> >
> > mvn will return exit probably.
> >
> > -D
> >
> >
> >  On 2/10/06, Pete <[EMAIL PROTECTED]> wrote:
> > >
> > > We had the same issue but got around it by using the ant <java> task
> > > to invoke maven's main class directly. i.e. the java command that
> > > appears at the end of the mvn.bat script. Your solution is probably
> > > neater.
> > >
> > >
> > > On 10/02/06, Xavier Galleri <[EMAIL PROTECTED] >
> > > wrote:
> > > >
> > > > Precisely, CC is the reason...
> > > >
> > > > Rgds,
> > > > -Xavier
> > > >
> > > > -----Original Message-----
> > > > From: Daniel Kulp [mailto:[EMAIL PROTECTED]<[EMAIL PROTECTED]>
> > > > <[EMAIL PROTECTED]>]
> > > > Sent: 10 February 2006 14:42
> > > > To: Maven Users List
> > > > Subject: Re: Calling mvn from ant does not propagate errors
> > > >
> > > >
> > > > > Good to hear that you've made it work.  But then, I'm just
> > > > > curious
> > > as
> > > > > to why you have to invoke Maven using Ant in the first place. :)
> > > >
> > > > Using cruisecontrol is one reason.   Cruisecontrol calls ant which
> > > forks
> > > > maven.  In that case, you definitely want to know if Maven failed
> > > > so
> > > you
> > > > can get cruisecontrol to report the failure properly.
> > > >
> > > > Don't bother mentioning continuum.  It's not usable (yet, give
> > > > them
> > > time)
> > > > for a lot of people.
> > > >
> > > > Enjoy!
> > > > --
> > > > J. Daniel Kulp
> > > > Principal Engineer
> > > > IONA
> > > > P: 781-902-8727  C: 508-380-7194
> > > > [EMAIL PROTECTED]
> > > >
> > > > ------------------------------------------------------------------
> > > > ---
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > > Ce message et ses pièces jointes (le "message") est destiné à
> > > > l'usage exclusif de son destinataire. Si vous recevez ce message
> > > > par erreur, merci d'en aviser immédiatement
> > >
> > > > l'expéditeur  et de le détruire ensuite. Le présent message
> > > > pouvant être altéré à notre insu,  CALYON Corporate and Investment
> > > > Bank ne peut pas être engagé par son contenu. Tous droits
> > > > réservés.
> > > >
> > > > This message and/or any  attachments (the "message") is intended
> > > > for the sole use of its addressee. If you are not the addressee,
> > > > please immediately notify the sender and then destroy the message.
> > > > As this message and/or any attachments may have been altered
> > > > without our knowledge,  its content  is not legally binding on
> > > > CALYON Corporate and Investment Bank. All rights reserved.
> > > >
> > > >
> > > >
> > > > ------------------------------------------------------------------
> > > > ---
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> >
>
> Ce message et ses pièces jointes (le "message") est destiné à l'usage
> exclusif de son destinataire.
> Si vous recevez ce message par erreur, merci d'en aviser immédiatement
> l'expéditeur  et de le détruire ensuite. Le présent message  pouvant
> être altéré à notre insu,  CALYON Corporate and Investment Bank
> ne peut pas être engagé par son contenu. Tous droits réservés.
>
> This message and/or any  attachments (the "message") is intended for
> the sole use of its addressee.
> If you are not the addressee, please immediately notify the sender and
> then destroy the message.  As this message and/or any attachments may
> have been altered without our knowledge,  its content  is not legally
> binding on CALYON Corporate and Investment Bank. All rights reserved.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to