----- Original Message ----- 
From: "Colin Sampaleanu" <[EMAIL PROTECTED]>
To: "Turbine Maven Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 19, 2003 2:25 PM
Subject: Re: Difference between prereqs and attainGoal


> Quinton McCombs wrote:
> 
> >What is the difference between declaring a prereq for the goal and using
> >attainGoal inside of the goal?  
> >
> >  
> >
> attainGoal will currently _always_ invoke the goal again (and all it's 
> prerequs), regardless of whether or not the current build has invoked 
> that goal, whereas any goals listed in the prerequs of goals specified 
> for the main build will only be attained once.
> 
> This behaviour, which is not very intuitive, or expected (as shown by 
> significant amount of code which on examination obviously expects it to 
> work exactly the same as prereq) happens because werkz's attainGoal tag 
> was originally meant to be used inside of werkz's attain tag, and share 
> a werkz session with sibling attainGoal tags.
> 
> There is no mechanism at this time for the attainGoal tag to get the 
> main maven werkz session, and take part in that. I have submitted code 
> to Bob W. and Jason which resolves this,, but they are sitting on it, I 
> guess due to time constraints or other things being more important. (On 
> the latter I would personally not agree; I think resolving goals 
> properly is fundamental to Maven, so breakage in this area is at this 
> point more important than just about anything else).

+1

...but you knew that.

-Peter


> 
> Colin
> 
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to