right, I missed that requirement..


actually, come to think of it - one could create a new jelly tag, which accepts a list of goal names, and attains them if they have not been attained yet (by using some plugin-context-level variables, which I assume are retained across the maven session).


Would that be useful for anyone? Or does m1.1 already deal with that?


Brett Porter wrote:

That won't suit his requirement about not attaining twice. You can put
the if statement inside the goal you are prereq'ing though.

- Brett

On 5/2/05, Arik Kfir <[EMAIL PROTECTED]> wrote:


Consider instead of using 'prereqs' to use <attainGoal> instead, like this:

<goal name="myGoal">

   <j:if test="...">
      <attainGoal name="..."/>
   </j:if>

</goal>


Geoffrey wrote:



Hi,

Can I do a conditional prereqs in a plugin.jelly?

A goal should be attained conditionally based on a jelly expression, but if
it's already attained in this build it shouldn't be attained either.








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




Reply via email to