Re: How to fail inside a maven plugin

2003-10-15 Thread khote
fail message=some message/
or 
fail
some message
/fail
- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 7:03 AM
Subject: How to fail inside a maven plugin


 Hi there,
 
 How to fail inside a maven plugin ?
 
 example:
 
   goal name=init
   
   j:set var=errorfalse/j:set
   j:if test=${class.dir == null}
 ant:echo message=property 'class.dir' not present/
 j:set var=errortrue/j:set
 /j:if
 j:if test=${error == 'true'}
 ant:echo message=Missing properties !/
 FAIL HERE
 /j:if
   ...
   /goal
 
 Thx,
 -emmanuel
 
 -
 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]



RE: How to fail inside a maven plugin

2003-10-15 Thread Mike Gilbert
 -Original Message-
 
 Hi there,
 
 How to fail inside a maven plugin ?
 
 example:
 
   goal name=init
   
   j:set var=errorfalse/j:set
   j:if test=${class.dir == null}
   ant:echo message=property 'class.dir' 
 not present/
   j:set var=errortrue/j:set
   /j:if
   j:if test=${error == 'true'}
   ant:echo message=Missing properties !/
   FAIL HERE


ant:failMissing 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]



RE: How to fail inside a maven plugin

2003-10-15 Thread Vincent Massol
I guess that if you're asking, it's because ant:fail doesn't work?

-Vincent

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 15 October 2003 16:04
 To: [EMAIL PROTECTED]
 Subject: How to fail inside a maven plugin
 
 Hi there,
 
 How to fail inside a maven plugin ?
 
 example:
 
   goal name=init
 
   j:set var=errorfalse/j:set
   j:if test=${class.dir == null}
   ant:echo message=property 'class.dir' not
present/
   j:set var=errortrue/j:set
   /j:if
   j:if test=${error == 'true'}
   ant:echo message=Missing properties !/
   FAIL HERE
   /j:if
   ...
   /goal
 
 Thx,
 -emmanuel
 
 -
 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]



Re: How to fail inside a maven plugin

2003-10-15 Thread khote
when I want to see how maven and ant work together, I look in the plugins.
My repository is in /mavenrepository

I do things like:

grep -ir fail /mavenrepository/ | less

and I can see where the plugin.jelly files are using that word.

- Original Message - 
From: [EMAIL PROTECTED]
To: Maven Users List [EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 7:41 AM
Subject: RE: How to fail inside a maven plugin


 
 It's because I was thinking the 'fail' exist in Maven or Jetty... ;)
 
 ant:fail work fine ;)
 
 Thx,
 -emmanuel
 
 Selon Vincent Massol [EMAIL PROTECTED]:
 
  I guess that if you're asking, it's because ant:fail doesn't work?
  
  -Vincent
  
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
   Sent: 15 October 2003 16:04
   To: [EMAIL PROTECTED]
   Subject: How to fail inside a maven plugin
   
   Hi there,
   
   How to fail inside a maven plugin ?
   
   example:
   
 goal name=init
   
 j:set var=errorfalse/j:set
 j:if test=${class.dir == null}
   ant:echo message=property 'class.dir' not
  present/
   j:set var=errortrue/j:set
   /j:if
   j:if test=${error == 'true'}
   ant:echo message=Missing properties !/
   FAIL HERE
   /j:if
 ...
 /goal
   
   Thx,
   -emmanuel
   
   -
   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]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to fail inside a maven plugin

2003-10-15 Thread Vincent Massol


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 15 October 2003 16:42
 To: Maven Users List
 Subject: RE: How to fail inside a maven plugin
 
 
 It's because I was thinking the 'fail' exist in Maven or Jetty... ;)

  ^^^
you're doing too much web development ;-)

-Vincent

[snip]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to fail inside a maven plugin

2003-10-15 Thread dion
Why not use the paramCheck tag?

http://maven.apache.org/tags.html#maven:paramCheck
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/


[EMAIL PROTECTED] wrote on 16/10/2003 12:03:46 AM:

 Hi there,
 
 How to fail inside a maven plugin ?
 
 example:
 
  goal name=init
 
 j:set var=errorfalse/j:set
 j:if test=${class.dir == null}
ant:echo message=property 'class.dir' not present/
 j:set var=errortrue/j:set
   /j:if
   j:if test=${error == 'true'}
  ant:echo message=Missing properties !/
  FAIL HERE
   /j:if
  ...
  /goal
 
 Thx,
 -emmanuel
 
 -
 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]