Apache Ant/Reindex a Collection

Motivation
You want a simple ant task that will reindex a collection.

Method
We will us the ant task that will call an XQuery that has the reindex command in it. Because there is no ant task that does this we will use the xquery task to execute a remote XQuery that performs this task.

Here is a link to the ant task to run an XQuery http://exist-db.org/ant-tasks.html#N1041F