There's nothing in particular to tell the current phase - usually it
is handled by configuration to the plugin, or by having different
goals that derive from a common base for use at different times.

Depending on what you are trying to determine, you might be able to
inspect the property you are trying to set to determine what you need
to know, however.

- Brett

2008/8/20 Thomas Darbois <[EMAIL PROTECTED]>:
> Hello I'm writing a plugin that can do stuff at any phase, by default it's at 
> process-sources, but the user can use this plugin at any phase.
>
> For one specific case, the plugin need to know in which phase he currently 
> is, because one specific parameter is only "settable" if the current phase is 
> after the "package" phase.
>
> How can I check the current phase inside the plugin in order to ensure that 
> I'm currently past this specific phase?  I can't see any method in 
> mavenProject API that will tell me the current phase. Perhaps I didn't look 
> at the right direction ;)
>
> Thanks for your time.
>
> Tomas Darbois
> Edifixio Grenoble - Projet ScorWare
> 04 76 29 89 29
> [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>
>
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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

Reply via email to