Hi Mark,

have you tried the "spawn"attribute of the Ant <exec> task?

Cheers,

Siegfried Goeschl

gags_78 wrote:
> Hi folks,
>
>          I'm trying to introduce automated integration testing for our
> application. I successfully integrated the cargo plugin to get our product
> deployed and started within a fresh jboss installation as part of
> pre-integration-test phase. Alas in order for our integration tests to work
> we need to connect to an external 3rd party service that itself needs to be
> running before the jboss server tries to boot. 
>
> The following is the pom snippet I was hoping to use to perform this task. 
>
>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
>        <execution>
>               <phase>process-test-resources</phase>
>                       <goals>
>                  <goal>run</goal>
>                       </goals>
>                       <configuration>
>               <tasks>
>                     <exec executable="startExternalService.cmd"/>
>               </tasks>
>               </configuration>                                                
>                 
>        </execution>
> </executions>
>
>
> Alas the maven process seems to hang until the external process is exited
> while I need it to continue running in the background to allow my jboss
> server to come up.
> I had orginally encountered the same problem with the Jboss server as
> obviously you need to kick it off and then once it's up you would run the
> tests. Again the mvn process would just hang there. then I stumbled across
> cargo and they've a very handy element called <wait>false</wait> that can be
> introduced to the cargo plugin's configuration element and it prevents maven
> from blocking on the jboss server. This allows you to kick off other
> executions but only within the same phase it seems. 
>
> I think this problem may be associated solely with windows as I believe
> though I haven't tested it that the ampersand '&' in linux will instruct the
> process to run in the background allowing the maven process to continue. 
>
> Basically if anyone has managed to leave a process running on a windows
> machine detached from the maven process and continue with the build I'd love
> the heads up on how to. 
>
> Thanks,
> Mark.
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to