File tree Expand file tree Collapse file tree
src/main/groovy/org/labkey/gradle/task Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616package org.labkey.gradle.task
1717
1818import org.gradle.api.DefaultTask
19- import org.gradle.api.file.RegularFileProperty
20- import org.gradle.api.tasks.InputFile
21- import org.gradle.api.tasks.Optional
2219import org.gradle.api.tasks.TaskAction
2320import org.labkey.gradle.plugin.extension.ServerDeployExtension
2421
@@ -30,15 +27,12 @@ import java.nio.file.Files
3027 */
3128class StopLabKey extends DefaultTask
3229{
33- @InputFile @Optional
34- final abstract RegularFileProperty pidFile = project. objects. fileProperty(). convention(
35- ServerDeployExtension . getEmbeddedDir(project). file(" labkey.pid" )
36- )
37-
3830 @TaskAction
3931 void action ()
4032 {
41- if (pidFile. get(). asFile. exists())
33+ File pidFile = ServerDeployExtension . getEmbeddedDir(project). file(" labkey.pid" ). asFile
34+
35+ if (pidFile. exists())
4236 {
4337 String pidStr = new String (Files . readAllBytes(pidFile. get(). asFile. toPath()), StandardCharsets . UTF_8 ). trim()
4438 Integer pid = Integer . parseInt(pidStr)
@@ -69,5 +63,4 @@ class StopLabKey extends DefaultTask
6963 }
7064 }
7165 }
72-
7366}
You can’t perform that action at this time.
0 commit comments