gradle-spawn-plugin
gradle-spawn-plugin copied to clipboard
Process does not continue
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
Same issue for me, any thoughts on fixing this?