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)?
+3
A:
Doesn't look like there are a set of Ant tasks for Git...
This blog talks about some rudimentary tasks for working with Git:
http://tlrobinson.net/blog/2008/11/13/ant-tasks-for-git/
Hope that helps.
Jon
2009-05-08 17:58:11
A:
Well the solution that tlrobinson provides does work. But wont it be better if there really was an integration of GIT and ANT? Because frankly speaking, both are necessary for a well organized project development environment.
Mugdha
2010-06-02 11:09:44
A:
It looks like there has been some additional, unofficial work done on Ant tasks for git:
- http://github.com/newtriks/Ant-Funk (and blog post http://www.newtriks.com/?p=910)
- http://github.com/FrancisVarga/ant-git-macros
I don't have experience with these, but they appear more fleshed out than tlrobinson's.
jwhitlock
2010-06-22 01:25:54
+1
A:
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.
James Tikalsky
2010-07-26 14:43:12