[ 
https://jira.codehaus.org/browse/MEXEC-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=298273#comment-298273
 ] 

Robert Scholte commented on MEXEC-109:
--------------------------------------

I don't like the idea that the process is killed because the Maven process ends.
There should be a cleaner way. As you already suggested yourself: introduce a 
shutdown hook.
I'm thinking of 2 new goals: {{start}} and {{stop}}
Would be nice if you could rewrite your patch.

                
> Fork patch
> ----------
>
>                 Key: MEXEC-109
>                 URL: https://jira.codehaus.org/browse/MEXEC-109
>             Project: Maven 2.x Exec Plugin
>          Issue Type: New Feature
>          Components: exec
>    Affects Versions: 1.3
>            Reporter: Henryk Konsek
>         Attachments: maven-exec-fork.patch, maven-exec-fork.reverse-patch
>
>
> Hi guys,
> The topic of fork exec (aka background process) has been raised few times 
> here however there is still no such functionality in the trunk. Therefore I 
> created patch (plus tests) for the trunk that provides the basic version of 
> that feature.
> My proposal is to add <fork> option to the configuration:
> <configuration>
> <fork>true</fork>
> <executable>/opt/bin/myLongRunningProcess</executable>
> </configuration>
> The background process is automatically killed when the Maven JVM exists. In 
> the future we could add an additional shutdown hooks (on given Maven phase 
> for example).
> This patch saved my life in few projects with heavy exec-related integration 
> :) . Could somebody take a look at it and (hopefully) add it to the trunk? 
> Running the process in the background is essential for many people and we 
> just need in the trunk.
> Kind regards.
> PS I'm attaching both regular and reverse patch.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to