File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
src/main/groovy/com/marklogic/gradle/task/databases Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,13 @@ import com.marklogic.mgmt.resource.databases.DatabaseManager
77
88class ClearTriggersDatabaseTask extends MarkLogicTask {
99
10- @TaskAction
11- void clearModules () {
12- println " Clearing all documents in triggers database"
13- DatabaseManager mgr = new DatabaseManager (getManageClient())
14- mgr. clearDatabase(getAppConfig(). getTriggersDatabaseName())
15- println " Finished clearing all documents in triggers database"
16- }
10+ @TaskAction
11+ void clearModules () {
12+ println " \n Consider using mlClearDatabase instead, which provides more flexibility via -Pdatabase= for clearing any database"
13+
14+ println " \n Clearing all documents in triggers database"
15+ DatabaseManager mgr = new DatabaseManager (getManageClient())
16+ mgr. clearDatabase(getAppConfig(). getTriggersDatabaseName())
17+ println " Finished clearing all documents in triggers database"
18+ }
1719}
You can’t perform that action at this time.
0 commit comments