Skip to content
This repository has been archived by the owner on Dec 18, 2022. It is now read-only.
Rimero Solutions edited this page Jul 28, 2013 · 3 revisions

The ant-git-tasks custom tasks provide wrappers around the Eclipse JGit API.

Only a small subset of the Git commands are implemented.

The expectation is that you use the git task container(GitTasks wiki page) and that you nest commands as needed.

<git:settings refId="git.testing"
              username="xxxtesting"
              password="xxxtesting"
              name="xxxtesting"
              email="[email protected]"/>

:

<git:git directory="gitRepoFolder" settingsRef="git.testing">
  <git:init/>
  <git:commit message="Initial commit" revCommitIdProperty="revcommit"/>
</git:git>

Any attribute common to the git task container and its nested tasks is propagated to the children. For example, you can override the directory or git settings per task basis, by setting explicitly the directory or settingsRef attributes for example.

Clone this wiki locally