@groovy.transform.CompileStatic class RunAppPidFileProvider extends java.lang.Object implements CommandLineArgumentProvider
Provides the -Dgrails.cli.pid.file system property to the forked bootRun JVM so
that the application writes its own PID to a known project local file. The CLI stop-app
command reads that file to locate and terminate the running application.
The PID file path is resolved lazily from a Provider when the argument list is built at execution time, so the build directory is not forced during configuration and the value stays configuration-cache safe.
| Type | Name and description |
|---|---|
Provider<RegularFile> |
pidFile |
java.lang.String |
propertyName |
| Constructor and description |
|---|
RunAppPidFileProvider(java.lang.String propertyName, Provider<RegularFile> pidFile) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.Iterable<java.lang.String> |
asArguments() |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |