File tree Expand file tree Collapse file tree 2 files changed +4
-28
lines changed
src/main/groovy/com/marklogic/gradle/task/client Expand file tree Collapse file tree 2 files changed +4
-28
lines changed Original file line number Diff line number Diff line change 11group =com.marklogic
2- version =3.10.0
2+ version =3.10.1
33javadocsDir =../gh-pages-marklogic-java/javadocs
44
5- mlAppDeployerDependency =com.marklogic:ml-app-deployer:3.10.0
5+ mlAppDeployerDependency =com.marklogic:ml-app-deployer:3.10.1
66mlcpUtilDependency =com.marklogic:mlcp-util:0.9.0
77mlDataMovementDependency =com.marklogic:marklogic-data-movement-components:1.1
88mlUnitTestDependency =com.marklogic:marklogic-unit-test-client:0.12.0
Original file line number Diff line number Diff line change 11package com.marklogic.gradle.task.client
22
3- import com.marklogic.appdeployer.command.modules.DeleteTestModulesCommand
4- import org.gradle.api.tasks.TaskAction
5-
6- import com.marklogic.appdeployer.AppDeployer
7- import com.marklogic.appdeployer.command.modules.LoadModulesCommand
8- import com.marklogic.appdeployer.impl.SimpleAppDeployer
93import com.marklogic.gradle.task.MarkLogicTask
4+ import org.gradle.api.tasks.TaskAction
105
116class LoadModulesTask extends MarkLogicTask {
127
138 @TaskAction
149 void loadModules () {
15- LoadModulesCommand command = null
16- DeleteTestModulesCommand deleteCommand = null
17-
18- // Check for a LoadModulesCommand in the AppDeployer first, as that may have additional configuration that we
19- // don't want to have to duplicate on this task
20- AppDeployer d = getAppDeployer()
21- if (d instanceof SimpleAppDeployer ) {
22- command = d. getCommand(" LoadModulesCommand" )
23- deleteCommand = d. getCommand(" DeleteTestModulesCommand" )
24- }
25-
26- if (command == null ) {
27- command = new LoadModulesCommand ()
28- }
29- if (deleteCommand == null ) {
30- deleteCommand = new DeleteTestModulesCommand ()
31- }
32-
33- command. execute(getCommandContext())
34- deleteCommand. execute(getCommandContext())
10+ deployWithCommandListProperty(" mlModuleCommands" )
3511 }
3612}
You can’t perform that action at this time.
0 commit comments