Reputation: 149
Could not able to Import documents with custom transform module option.
I am trying to Import through mlcp as a gradle task over SSL. When I try to Run task , it is building successfully but not importing any modules.
Code:
task DeployPatterns(type: com.marklogic.gradle.task.MlcpTask) {
classpath = configurations.mlcp
command = "IMPORT"
ssl = true
port = project.mlRestPort.toInteger()
database = mlAppConfig.contentDatabaseName
input_file_type = "documents"
document_type = "xml"
input_file_path = "data/patterns/"
transform_param = "template temp"
transform_module = "/ext/mlcp/transform.xqy"
transform_namespace = "http://transform-test"
output_collections = "config, patterns"
output_permissions = "rest-reader,read,rest-writer,update"
output_uri_replace = ".*data/,'/'"
}
The Task is running successfully but not performing any import.
MarkLogic - 8.0.6-6
Gradle - 3.9.0
mlcp - 9.0.5
Upvotes: 0
Views: 239
Reputation: 149
When you use mlcp, you supply the name of a user(s) with which to interact with MarkLogic Server. If the user does not have admin privileges, then the user must have at least the privileges as below
Upvotes: 0