Skip to content

Commit f020f49

Browse files
committed
#329 Deleting module timestamps now uses the property for where the file is
1 parent 471b84b commit f020f49

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
package com.marklogic.gradle.task
22

3-
import com.marklogic.client.ext.modulesloader.impl.PropertiesModuleManager
4-
import org.gradle.api.DefaultTask
53
import org.gradle.api.tasks.TaskAction
64

7-
class DeleteModuleTimestampsFileTask extends DefaultTask {
8-
9-
String filePath = PropertiesModuleManager.DEFAULT_FILE_PATH
5+
class DeleteModuleTimestampsFileTask extends MarkLogicTask {
106

117
@TaskAction
128
void deleteFile() {
9+
String filePath = getAppConfig().getModuleTimestampsPath()
1310
File f = new File(filePath)
1411
if (f.exists()) {
1512
println "Deleting " + f.getAbsolutePath() + "\n"
1613
f.delete()
14+
} else {
15+
println "Module timestamps file " + filePath + " does not exist, so not deleting"
1716
}
1817
}
1918
}

0 commit comments

Comments
 (0)