A task for stopping a running project whose pid is provided in a file.
This task is typically executed to stop a project started using StartTask
.
- Since:
- 1.4
- Author:
- Jeremy Kuhn
-
Method Summary
Methods inherited from interface io.inverno.tool.buildtools.Task
doOnComplete, execute
-
Method Details
-
pidfile
Sets the path to the file containing the pid of the running project.
Defaults to
[WORKING_PATH]/[PROJECT_NAME].pid
- Parameters:
pidfile
- The path tp the pidfile- Returns:
- the task
-
timeout
Sets the time to wait for the running project to stop after sending the SIGINT signal.
If the process is not stopped after the timeout, task execution fails with a
TaskExecutionException
.Defaults to
60000
.- Parameters:
timeout
- the timeout in milliseconds- Returns:
- the task
-