You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
No, not a problem. I am using Docker to package pre-built developer environments. The embedded HSQL database or Tomcat spawn independent child processes, and this presents unique challenges when trying to do process coordination within a Docker container. The default spawn: true is fine for most situations, but there are circumstances when it would be nice to override this.
To sum it up: define an option for the HSQL or Tomcat tasks to create foreground processes while retaining the existing conveniences of the Gradle task config.
Describe the solution you'd like
Replace spawn: true for the hsqlStart and tomcatStart tasks with (project.findProperty('antNoSpawn') == 'true') ? false : true
Describe alternatives you've considered
Hacky Bash scripting inside the containers. It can work, but emphasis on how hacky it is.
Additional context
Allowing the Gradle tasks to create foreground processes would allow easier process coordination with tools such as Supervisord or Monit (inside or outside of a container environment).
Tested with the following scenarios:
./gradlew --console=plain -PantNoSpawn=true hsqlStart and
./gradlew --console=plain hsqlStart
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
No, not a problem. I am using Docker to package pre-built developer environments. The embedded HSQL database or Tomcat spawn independent child processes, and this presents unique challenges when trying to do process coordination within a Docker container. The default
spawn: true
is fine for most situations, but there are circumstances when it would be nice to override this.To sum it up: define an option for the HSQL or Tomcat tasks to create foreground processes while retaining the existing conveniences of the Gradle task config.
Describe the solution you'd like
Replace
spawn: true
for thehsqlStart
andtomcatStart
tasks with(project.findProperty('antNoSpawn') == 'true') ? false : true
Describe alternatives you've considered
Hacky Bash scripting inside the containers. It can work, but emphasis on how hacky it is.
Additional context
Allowing the Gradle tasks to create foreground processes would allow easier process coordination with tools such as Supervisord or Monit (inside or outside of a container environment).
Tested with the following scenarios:
./gradlew --console=plain -PantNoSpawn=true hsqlStart
and./gradlew --console=plain hsqlStart
The text was updated successfully, but these errors were encountered: