Re: detect the current phase

2007-10-02 Thread Jason van Zyl


On 1 Oct 07, at 11:02 PM 1 Oct 07, Jerome Lacoste wrote:


someone knows if this possible ?




Not possible.


J

-- Forwarded message --
From: Jerome Lacoste [EMAIL PROTECTED]
Date: Sep 29, 2007 11:18 PM
Subject: detect the current phase
To: [EMAIL PROTECTED]


Hei,

is there a way to detect the phase a plugin is being executed in ?

This is to fix http://jira.codehaus.org/browse/MEXEC-26

Cheers,

--
Jerome Lacoste


--
Jerome Lacoste

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



Thanks,

Jason

--
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
--




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



Re: detect the current phase

2007-10-02 Thread Jerome Lacoste
On 10/2/07, Jason van Zyl [EMAIL PROTECTED] wrote:

 On 1 Oct 07, at 11:02 PM 1 Oct 07, Jerome Lacoste wrote:

  someone knows if this possible ?
 

 Not possible.

Jason,

thanks for your answer.

I need to set the classpath accordingly to the phase the plugin is in.
Is my only solution to create a new mojo specifically for the test
phase, or to add a plugin parameter for the user to configure the
plugin with ?

Is there a feature planned to add this functionality or is it a design
decision to not let the plugin aware of the phase it is been executed
in ?

Jerome

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



Re: detect the current phase

2007-10-02 Thread Jason van Zyl


On 2 Oct 07, at 5:15 AM 2 Oct 07, Jerome Lacoste wrote:


On 10/2/07, Jason van Zyl [EMAIL PROTECTED] wrote:


On 1 Oct 07, at 11:02 PM 1 Oct 07, Jerome Lacoste wrote:


someone knows if this possible ?



Not possible.


Jason,

thanks for your answer.

I need to set the classpath accordingly to the phase the plugin is in.
Is my only solution to create a new mojo specifically for the test
phase, or to add a plugin parameter for the user to configure the
plugin with ?



You something really simple and provide a config parameter to the  
plugin. It's a hack but while setting the phase you want to execute  
in you can set the parameter on the mojo if you really need it.



Is there a feature planned to add this functionality or is it a design
decision to not let the plugin aware of the phase it is been executed
in ?

Jerome

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



Thanks,

Jason

--
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
--




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