Skip to content

Commit 36299e5

Browse files
committed
#528 mlLoadModules now deletes the module timestamps file first
The task will now by default load all modules, which avoids a lot of confusion as to when this doesn't load modules due to user's not being familiar yet with the timestamps file concept.
1 parent 5bddbe6 commit 36299e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/groovy/com/marklogic/gradle/MarkLogicPlugin.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ class MarkLogicPlugin implements Plugin<Project> {
226226
project.task("mlUndeployMimetypes", type: UndeployMimetypesTask, group: mimetypesGroup, description: "Undeploy each mimetype defined in the configuration directory")
227227

228228
String modulesGroup = "ml-gradle Modules"
229-
project.task("mlLoadModules", type: LoadModulesTask, group: modulesGroup, dependsOn: "mlPrepareBundles", description: "Loads modules from directories defined by mlAppConfig or via a property on this task").mustRunAfter(["mlClearModulesDatabase"])
229+
project.task("mlLoadModules", type: LoadModulesTask, group: modulesGroup, dependsOn: ["mlPrepareBundles", "mlDeleteModuleTimestampsFile"], description: "Loads modules from directories defined by mlAppConfig or via a property on this task").mustRunAfter(["mlClearModulesDatabase"])
230230
project.task("mlReloadModules", group: modulesGroup, dependsOn: ["mlClearModulesDatabase", "mlLoadModules"], description: "Reloads modules by first clearing the modules database and then loading modules")
231231
project.task("mlWatch", type: WatchTask, group: modulesGroup, description: "Run a loop that checks for new/modified modules every second and loads any that it finds. To ignore files that are already dirty and only process new changes, include -PignoreDirty=true . ")
232232
project.task("mlDeleteModuleTimestampsFile", type: DeleteModuleTimestampsFileTask, group: modulesGroup, description: "Delete the properties file in the build directory that keeps track of when each module was last loaded")

0 commit comments

Comments
 (0)