Best way to integrate Git with Ant?

I am looking for the best way to integrate Git with Ant. Is there a widely used Ant task for Git? Does anyone have any experience using Git through Ant (e.g. dedicated task, exec call, etc)?


Ant supports the exec command that you can use to pass any command (including Git) to the command line for execution. You can always fall back on that.


Doesn't look like there were a set of Ant tasks for Git.

This blog talks about some rudimentary tasks for working with Git.


Here is Git Ant Tasks via JGit: http://aniszczyk.org/2011/05/12/git-ant-tasks-via-jgit/ .