> -----Original Message----- > > Hi there, > > How to fail inside a maven plugin ? > > example: > > <goal name="init"> > > <j:set var="error">false</j:set> > <j:if test="${class.dir == null}"> > <ant:echo message="property 'class.dir' > not present"/> > <j:set var="error">true</j:set> > </j:if> > <j:if test="${error == 'true'}"> > <ant:echo message="Missing properties !"/> > FAIL HERE
<ant:fail>Missing properties !</ant:fail> > </j:if> > ... > </goal> > > Thx, > -emmanuel > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.525 / Virus Database: 322 - Release Date: 09/10/2003 > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.525 / Virus Database: 322 - Release Date: 09/10/2003 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]