Skip to content

Commit 68ce160

Browse files
committed
#456 Can now define multiple instances of DeleteCollectionsTask
1 parent cc6aa86 commit 68ce160

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/groovy/com/marklogic/gradle/task/datamovement/DeleteCollectionsTask.groovy

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ class DeleteCollectionsTask extends DataMovementTask {
99

1010
@TaskAction
1111
void deleteCollections() {
12-
if (collections != null && collections.length > 0) {
13-
getProject().getExtensions().add("collections", collections.join(","))
14-
}
12+
project.ext.collections = (collections != null && collections.length > 0) ? collections.join(",") : null
1513
runQueryBatcherJob(new DeleteCollectionsJob())
1614
}
1715
}

0 commit comments

Comments
 (0)