0

I need to change the root path of Appserver in marklogic using mlgradle. Can I know how to do it?

Is there any way to do such changes using mlgradle?

enter image description here

Dave Cassel
  • 8,352
  • 20
  • 38
Teja sai
  • 1
  • 1

2 Answers2

1

You just need a file under src/main/ml-config/servers - it can have any filename, e.g. BuildAutomation.json - with a "server-name" property (so ml-gradle knows what server it applies to) and a "root" property.

rjrudin
  • 2,108
  • 9
  • 7
1

Just to expand a little on what @rjrudin said, in my project, I have a server config file in src/main/ml-config/servers that includes the following:

{
  "server-name": "myServer",
  "group-name": "Default",
  "server-type": "http",
  "enabled": true,
  "root": "%%myServerRoot%%",
  "port": %%myServerPort%%,
  ...
}

And then I define myServerRoot and myServerPort in my gradle properties file. You could, of course, hard code the values, too, but I wanted more deployment flexibility in my project.

kcoleman
  • 666
  • 3
  • 8