We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68ce160 commit 3a1a5fcCopy full SHA for 3a1a5fc
src/main/groovy/com/marklogic/gradle/task/ServerEvalTask.groovy
@@ -5,12 +5,16 @@ import org.gradle.api.tasks.TaskAction
5
6
class ServerEvalTask extends MarkLogicTask {
7
8
+ DatabaseClient client
9
+
10
String xquery
11
String javascript
12
13
@TaskAction
14
void serverEval() {
- DatabaseClient client = newClient()
15
+ if (client == null) {
16
+ client = newClient()
17
+ }
18
try {
19
String result
20
if (xquery != null) {
0 commit comments