Skip to content
This repository has been archived by the owner on May 30, 2019. It is now read-only.

Using "gradle dbconfigure" for server extension development

alencruz edited this page Jan 9, 2016 · 4 revisions

When you're developing MarkLogic extensions, it's convenient to have them installed on MarkLogic Server automatically. The gradle dbconfigure command can detect changes in the database directory between runs. For example, if you edit database/options/questions.json and then run gradle dbconfigure, only that file is uploaded to MarkLogic Server.

To upload changes automatically every 5 seconds without explicitly running gradle dbconfigure, run the following command in a shell:

while true; do gradle dbconfigure ; sleep 5; done

With this running in the background, server configuration and extension is simply a matter of editing and saving your file, and then watching test output.