Skip to content

Commit adf0a51

Browse files
committed
defers project properties in mlcp tasks till execution time (performance sample)
thus allowing hubInit without a gradle.properties
1 parent 964673d commit adf0a51

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

examples/performance-sample/build.gradle

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,12 @@ task loadJson(type: com.marklogic.gradle.task.MlcpTask) {
120120
mustRunAfter mlLoadModules
121121
mustRunAfter getInputData
122122

123+
doFirst {
124+
database = mlStagingDbName
125+
port = mlStagingPort.toInteger()
126+
}
123127
classpath = configurations.mlcp
124128
command = "IMPORT"
125-
database = mlStagingDbName
126-
port = mlStagingPort.toInteger()
127129
input_file_path = "./input/raw.txt"
128130
delimiter = "\t"
129131
input_file_type = "delimited_text"
@@ -141,10 +143,12 @@ task loadXml(type: com.marklogic.gradle.task.MlcpTask) {
141143
mustRunAfter mlLoadModules
142144
mustRunAfter getInputData
143145

146+
doFirst {
147+
database = mlStagingDbName
148+
port = mlStagingPort.toInteger()
149+
}
144150
classpath = configurations.mlcp
145151
command = "IMPORT"
146-
database = mlStagingDbName
147-
port = mlStagingPort.toInteger()
148152
input_file_path = "./input/raw.txt"
149153
delimiter = "\t"
150154
input_file_type = "delimited_text"

0 commit comments

Comments
 (0)