File tree Expand file tree Collapse file tree 1 file changed +5
-19
lines changed
src/main/groovy/com/marklogic/gradle/task/schemas Expand file tree Collapse file tree 1 file changed +5
-19
lines changed Original file line number Diff line number Diff line change 11package com.marklogic.gradle.task.schemas
22
3- import org.gradle.api.tasks.TaskAction
4-
5- import com.marklogic.appdeployer.AppDeployer
6- import com.marklogic.appdeployer.command.schemas.LoadSchemasCommand
7- import com.marklogic.appdeployer.impl.SimpleAppDeployer
83import com.marklogic.gradle.task.MarkLogicTask
4+ import org.gradle.api.tasks.TaskAction
95
106class LoadSchemasTask extends MarkLogicTask {
117
12- @TaskAction
13- void loadSchemas () {
14- LoadSchemasCommand command = null
15- // Check for a LoadSchemasCommand in the AppDeployer first, as that may have additional configuration that we
16- // don't want to have to duplicate on this task
17- AppDeployer d = getAppDeployer()
18- if (d instanceof SimpleAppDeployer ) {
19- command = d. getCommand(" LoadSchemasCommand" )
20- }
21- if (command == null ) {
22- command = new LoadSchemasCommand ()
23- }
24- command. execute(getCommandContext())
25- }
8+ @TaskAction
9+ void loadSchemas () {
10+ deployWithCommandListProperty(" mlSchemaCommands" )
11+ }
2612}
You can’t perform that action at this time.
0 commit comments