Ant mediator is a pluggable extension to Apache Synapse and WSO2 ESB, Enterprise Service Bus products. It executes Ant tasks programmatically through the Synapse configuration. It can extract properties and values from the current message context and pass them to the Ant build file as properties. Also Ant target can be selected dynamically by setting a property in the message context as well. For example Ant mediator can be used to call shell scripts in the message mediation. Check out the sample, and download the binary with the source code here.