DISQUS

DISQUS Hello! tlrobinson.net / blog is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

Ant Tasks for Git

Started by tlrobinson · 7 months ago

Ant has tasks for CVS and Subversion, but none that I could find for Git. I threw together these simple Ant macros to get started:

<macrodef name = "git">
    <attribute name = "command" /%2 ... Continue reading »

3 comments

  • is there going to be an appstore / cydia / installer app with your wifi-acelerometer transmittance thing? That looks really cool, and I am sure people would appreciate it. I certainly would, there's nothing like this around yet!! Been looking a while, though.

    Thanks,

    Markus
  • Nice post!

    My two cents:
    - What if you need to authenticate with the remote repository? There is no parameter to do that - and that would not be secure anyway. A SSH agent would work but only if the server authorizes your public key. At the very least, you could have Ant ask input from the user, but that prevents unattended runs.
    - An Ant task would either call the git executable, with all the issues that it implies (differences between platforms, availability of the executable, etc.), or it could use the only Java (partial) implementation of git I'm aware of at this time: egit.
    - Some CI programs (Hudson, Cruise Control) have a git plugin. Since they're open source, it might be worth a look... My guess is that they simply call the executable.
  • I am able to use svn checkout from commandline from a url. But the same task when i add in my ant build file, the build file fails telling me that the url@HEAD does not exist.

Add New Comment

Returning? Login