Skip to content

Watching for module changes

rjrudin edited this page Jan 6, 2017 · 5 revisions

While developing code in MarkLogic, you ideally want a cycle of:

  1. Create or modify a module
  2. Test it, either manually or via an automated test

That is - ideally, you don't need to take any action to load the new/modified module into your modules database.

To support this cycle, ml-gradle features a task named mlWatch that will load new/modified modules as you create/modify them. It checks every second for any such modules, so you have at most a one second delay.

mlWatch will also tell you what it's loading when you use the Gradle "-i" or "--info" flag, so it's best to run it as:

gradle -i mlWatch

Also see Loading modules with static checking for support for statically checking modules as they're loaded.

Clone this wiki locally