process - Background Processes out-living gradle build -


i using gradle-processes manage set of long running services.

i basing tasks on javafork, , using main class classpath , arguments.

this how looks like:

    project.procs.javafork {         main = "startapp"         environment += ["classpath": project.ext.localcp]     } 

on osx, , linux works expectations, on windows, forked processes dying on me after gradle build finished , gradle process exited.

 :startmainapp  build successful  total time: 1 mins 53.635 secs  c:\projects\git\development\master> 

any idea ? or settings need set avoid separate process terminated when gradle exists ?

as work around using different fork:

if (os.isfamily(os.family_windows)) {     project.procs.fork {         commandline 'cmd', '/c','java.exe com.me.startapp"         environment += ["classpath": project.ext.localcp]     } } else {     project.procs.javafork {         main = "com.me.startapp"         environment += ["classpath": project.ext.localcp]     } } 

Comments

Popular posts from this blog

javascript - Wordpress slider, not displayed 100% width -

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -