You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Phuong Nguyen <ph...@gmail.com> on 2010/03/20 04:18:10 UTC
Have maven goal running in background mode
Hi:
Is there any way to prevent my maven goal from being terminated by
maven?
For example, I have a goal named RunGoal.
In the RunGoal.execute method, I want to instantiate another
background-thread and have RunGoal.execute returned.
The background-thread should be continued to run while Maven execute
another goal. The background-thread is only terminated later (maybe when
maven exit or another goal is called).
Thanks,
Phuong.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: Have maven goal running in background mode
Posted by Dan Tran <da...@gmail.com>.
No,
You need to create 2 goals: start and stop with option not to call
stop where start thread dies when maven terminates.
Is this clear enough? Did you take a look at seleninum plugin I have
suggested yesterday?
-D
On Fri, Mar 19, 2010 at 8:18 PM, Phuong Nguyen <ph...@gmail.com> wrote:
> Hi:
> Is there any way to prevent my maven goal from being terminated by
> maven?
> For example, I have a goal named RunGoal.
> In the RunGoal.execute method, I want to instantiate another
> background-thread and have RunGoal.execute returned.
> The background-thread should be continued to run while Maven execute
> another goal. The background-thread is only terminated later (maybe when
> maven exit or another goal is called).
> Thanks,
> Phuong.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org