You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Jerome Lacoste <je...@gmail.com> on 2007/10/02 08:02:22 UTC
Fwd: detect the current phase
someone knows if this possible ?
J
---------- Forwarded message ----------
From: Jerome Lacoste <je...@gmail.com>
Date: Sep 29, 2007 11:18 PM
Subject: detect the current phase
To: dev@mojo.codehaus.org
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: detect the current phase
Posted by Jason van Zyl <ja...@maven.org>.
On 2 Oct 07, at 5:15 AM 2 Oct 07, Jerome Lacoste wrote:
> On 10/2/07, Jason van Zyl <ja...@maven.org> 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: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder, Apache Maven
jason at sonatype dot com
----------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: detect the current phase
Posted by Jerome Lacoste <je...@gmail.com>.
On 10/2/07, Jason van Zyl <ja...@maven.org> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: detect the current phase
Posted by Jason van Zyl <ja...@maven.org>.
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 <je...@gmail.com>
> Date: Sep 29, 2007 11:18 PM
> Subject: detect the current phase
> To: dev@mojo.codehaus.org
>
>
> 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: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder, Apache Maven
jason at sonatype dot com
----------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org