On Tue, 2003-07-08 at 04:37, Michal Maczka wrote:

> I agree that this "thing" does not belong to test plugin.
> 
> The problem is that postGoal concept is very limited in that sense, 
> that there can be only one preGoal/postGoal of given goal.
> So IMHO adding any functionality to postGoal should be practiced only on
> project level (maven.xml file) and mustn't be used on plugin level. And this
> means that such extension can be hardly implemented in the way which allows
> reusing them.
> 
> 
> 
> I have some ideas regarding "goals" for feature version of Maven
> (maven-new?)
> 
> Wouldn't it be better to use goal listeners instead or pre/post goals?
> 
> e.g something like
> interface GoalListeners
> {
>     void goalStarted(...)
>     void goalFinished(...)
> }

I have already added this to Werkz and was necessary to allow the use of
separate contexts during the attainment of goals. There is an
AttainGoalListener when I use to set the context (classloaders, jelly
contexts and whatever else I might need in the future) before a goal is
attained and I pop the context off the stack when it's done.

> 
> This will allow using unlimited number of goal decorators.
> 

Yes, when there are non-Jelly plugins, most definitely.

> So there can be more tools like "build observers", and those tools.
> can be used in parallel.
> 
> E.g Mail notifiers and this, what Vincent has described in his post: 
> <<[Idea] Historical data and "best-behaving"/dashboard reports>>  
> belongs to this category(build observers).
> 
> 
> 
> Other issue with goals:
> 
> I believe that we need something like "namespaces" for plugins.
> This is needed if we are going to support versioned plugins (so user can
> choose which version of particular plugin he wants to use). So e.g. when
> user calls "ejb:ejb" goal - Maven will know that this goal is mapped to ejb
> plugin. 
> In next step maven will check user's preferred version of this plugin
> and "load/execute" the goal from say: maven-ejb-plugin-1.1
> If user has no "preferred" version of given plugin we can use always
> the newest version. 
> 
> 
> 
> Michal
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
jvz.

Jason van Zyl
[EMAIL PROTECTED]
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


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

Reply via email to