[
https://jira.codehaus.org/browse/MEXEC-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Scholte closed MEXEC-96.
-------------------------------
Resolution: Duplicate
> Background batch
> -----------------
>
> Key: MEXEC-96
> URL: https://jira.codehaus.org/browse/MEXEC-96
> Project: Maven 2.x Exec Plugin
> Issue Type: Bug
> Reporter: mors
>
> I have a batch script that starts server. Usually the server keeps running on
> the shell, but I can use the -d option to send it to the background and send
> the verbose to a log. If this option is on the batch does an {{echo}} and a
> {{exit 0}}:
> {code:java}
> ...
> if[ "$d" ]
> then
> echo "I'M IN"
> exit 0
> else
> wait $PID
> fi
> {code}
> When running this script in the shell:
> {{> sh myscript.sh -d}}
> The behaviour is correct: the server is started, the verbose is directed to
> the log and the shell is free.
> But when I use the plug in, with this:
> {code:xml}
> <execution>
> <id>exec-one</id>
> <phase>validate</phase>
> <configuration>
> <executable>myscript.sh</executable>
> <arguments>
> <argument>-d</argument>
> </arguments>
> </configuration>
> <goals>
> <goal>exec</goal>
> </goals>
> </execution>
> {code}
> The script prints the '{{I'M IN}}' but it doesn't free the shell, nor does it
> continue the rest of the phases execution (I'm running this goal with in the
> very first {{validate}} phase for testing proposes).
> What is happening here? Should it be possible to run a job in background? The
> server is going to be used for testing so it really needs to be up.
> Synchronizations aside, is there something I'm missing?
--
This message is automatically generated by JIRA.
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