You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was not accounting for the fact that the "deployForestsCommand" will be null when a user is explicitly creating forests instead of dynamically creating them via properties.
Copy file name to clipboardExpand all lines: src/main/groovy/com/marklogic/gradle/MarkLogicPlugin.groovy
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -219,7 +219,8 @@ class MarkLogicPlugin implements Plugin<Project> {
219
219
project.task("mlDeleteForestReplicas", type: DeleteForestReplicasTask, group: forestGroup, description: "Deprecated - delete forest replicas via the command.forestNamesAndReplicaCounts map; requires -Pconfirm=true to be set so this isn't accidentally executed")
220
220
project.task("mlDeployCustomForests", type: DeployCustomForestsTask, group: forestGroup, description: "Deploy custom forests as defined in subdirectories of the forests configuration directory")
221
221
project.task("mlDeployForestReplicas", type: DeployForestReplicasTask, group: forestGroup, description: "Prefer this over mlConfigureForestReplicas; it does the same thing, but uses the ConfigureForestReplicasCommand that is used by mlDeploy")
222
-
project.task("mlPrintForestPlan", type: PrintForestPlanTask, group: forestGroup, description: "Print a list of primary forests to be created for a database specified by -Pdatabase=(name of database) when the database is next deployed")
222
+
project.task("mlPrintForestPlan", type: PrintForestPlanTask, group: forestGroup, description: "Print a list of primary forests to be created for a database specified by -Pdatabase=(name of database) when the database is next deployed. "+
223
+
"This is only intended to be used when forests are created dynamically via properties.")
223
224
224
225
String groupsGroup ="ml-gradle Group"
225
226
project.task("mlDeployGroups", type: DeployGroupsTask, group: groupsGroup, description: "Deploy each group, updating it if it exists, in the configuration directory")
println"\nNo primary forests will be created the next time the database '"+ database +"' is deployed; this is likely because it already has all of the primary desired forests based on the configuration settings."
52
+
println"\nNo primary forests will be created the next time the database '"+ database +"' is deployed. This is "+
53
+
"likely because it already has all of the primary desired forests based on the configuration settings, or because "+
54
+
"you are explicitly defining forests to create instead of creating forests dynamically via properties."
49
55
println"\nIf replicas have been configured for the database - e.g. via mlDatabaseNamesAndReplicaCounts - and these do not exist yet, "+
50
56
"then replicas will be created the next time either the mlDeploy task or mlConfigureForestReplicas task is run."
0 commit comments