views:

1758

answers:

4

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
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
A: 

It looks like there has been some additional, unofficial work done on Ant tasks for git:

I don't have experience with these, but they appear more fleshed out than tlrobinson's.

jwhitlock
+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