Skip to content

Commit 5daf01b

Browse files
committed
- surround with try/catch to avoid issues with write-only property argsString
- update to CoRB 2.5.1
1 parent 0d411e6 commit 5daf01b

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

examples/corb2-project/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
corbVersion=2.5.0
1+
corbVersion=2.5.1
22
mlHost=localhost
33
mlAppName=corb2-project
44
mlRestPort=8140

src/main/groovy/com/marklogic/gradle/task/CorbTask.groovy

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,14 @@ XQUERY-MODULE".tokenize(',')
177177
this.metaClass.getProperties().collectEntries {
178178
String corbOptionKey = CORB_PROPERTY_PREFIX + it.name.capitalize()
179179
//evaluate whether a value is set and the name matches the corbOptions key pattern
180-
if (corbOptions[corbOptionKey] && this[it.name]) {
181-
[(corbOptions[corbOptionKey]): this[it.name] ]
182-
} else {
183-
[:]
180+
try {
181+
if (corbOptions[corbOptionKey] && this[it.name]) {
182+
[(corbOptions[corbOptionKey]): this[it.name] ]
183+
} else {
184+
[:]
185+
}
186+
} catch (groovy.lang.GroovyRuntimeException ex) {
187+
return [:]
184188
}
185189
}
186190
}

0 commit comments

Comments
 (0)