gradle-spawn-plugin icon indicating copy to clipboard operation
gradle-spawn-plugin copied to clipboard

Process does not continue

Open cocorossello opened this issue 7 years ago • 1 comments

Hi,

I'm using this plugin to start my tomee:

task startServer(type: SpawnProcessTask, dependsOn: 'assemble') { doFirst{ copyDependencies.execute() copyExploded.execute()

}
command "$buildDir/apache-tomee/bin/catalina.bat run"
environmentVariables =[CATALINA_HOME: "${buildDir}/apache-tomee".toString()]
ready 'Server start'

}

I'm using to setup some system tests:

task systemTest(type: Test) { doFirst{startServer.execute()}

useJUnit {
    include '**/EndToEndSuite.class'
}
doLast{killServer.execute()}

}

I can see that the server starts, the ready condition is met but the task stops there.

10:13:12.707 [main] INFO org.apache.catalina.startup.Catalina - Server startup in 24332 ms C:\proyectos\tr2\tr2-web-test\build/apache-tomee/bin/catalina.bat run is ready.

Building 96% > :tr2-web-test:systemTest

cocorossello avatar Mar 16 '17 10:03 cocorossello

Same issue for me, any thoughts on fixing this?

sebastianzillessen avatar Jun 14 '20 13:06 sebastianzillessen