Skip to content

Commit 83765c5

Browse files
author
Peter Kester
committed
#617 fixed issue with mlDeleteModuleTimestampsFile
Made filePath a class property and added @input and added @optional annotation on filePath
1 parent 9816f87 commit 83765c5

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

examples/ssl-project/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
2-
id "com.marklogic.ml-gradle" version "3.6.0"
2+
id "net.saliman.properties" version "1.5.1"
3+
id "com.marklogic.ml-gradle" version "4.3.4"
34
}
45

56
/*

src/main/groovy/com/marklogic/gradle/task/DeleteModuleTimestampsFileTask.groovy

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
package com.marklogic.gradle.task
22

3+
import org.gradle.api.tasks.Input
4+
import org.gradle.api.tasks.Optional
35
import org.gradle.api.tasks.TaskAction
46

57
class DeleteModuleTimestampsFileTask extends MarkLogicTask {
68

9+
@Input
10+
@Optional
11+
String filePath;
12+
713
@TaskAction
814
void deleteFile() {
9-
String filePath = getAppConfig().getModuleTimestampsPath()
15+
filePath = getAppConfig().getModuleTimestampsPath()
1016
File f = new File(filePath)
1117
if (f.exists()) {
1218
println "Deleting " + f.getAbsolutePath() + "\n"

0 commit comments

Comments
 (0)