Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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)?

like image 282
Vince Avatar asked May 08 '09 17:05

Vince


3 Answers

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.

like image 73
James Tikalsky Avatar answered Nov 07 '22 23:11

James Tikalsky


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

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

like image 36
Jon Avatar answered Nov 08 '22 00:11

Jon


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

like image 42
Mike Henke Avatar answered Nov 08 '22 00:11

Mike Henke