If the Ant task isn't failing, you can't expect Maven to fail. Look at the <java> tasks 'failonerror' attribute. You may need to modify your Java app to get this working.
On 5/5/05, Mark D. Hansen <[EMAIL PROTECTED]> wrote: > goal1, goal2, are ant <java ...> tasks. I guess the java is failing in a way > that does not throw an exception. Sorry for the stupid question! > > > -----Original Message----- > > From: Brett Porter [mailto:[EMAIL PROTECTED] > > Sent: Thursday, May 05, 2005 9:56 AM > > To: Maven Users List > > Subject: Re: preGoal - how to stop the build ?? > > > > > > What do you mean by "fails"? It certainly should stop dead if you hit > > <ant:fail/> or an exception. > > > > - Brett > > > > On 5/5/05, Mark D. Hansen <[EMAIL PROTECTED]> wrote: > > > I have this: > > > > > > <preGoal name="java:compile"> > > > <attainGoal name="goal1"/> > > > <attainGoal name="goal2"/> > > > </preGoal> > > > > > > If goal1 fails, the processing continues to try to run > > "goal2". How do I make it stop if goal1 fails? Acually, I'd > > like the whole build to stop if any part of the preGoal > > fails. How do I do that? > > > > > > Thanks! > > > > > > > > --------------------------------------------------------------------- > > > 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] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Jamie Bisotti Software Engineer Lexmark International, Inc. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
