Patch Set 3:

rebased

How can I run the tests from eclipse?

When I run them as JUnit test I get:

The following error occurred while executing this line:
jar:file:/C:/Eclipse/installations/eclipse-SDK-3.7RC2-win32-x86_64/eclipse/plugins/org.apache.ant_1.8.2.v20110505-1300/lib/ant.jar!/org/apache/tools/ant/antlib.xml:37: Problem: failed to create task or type componentdef
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

	at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
	at org.apache.tools.ant.taskdefs.Definer.loadAntlib(Definer.java:445)
	at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:292)
	at org.apache.tools.ant.ComponentHelper.checkNamespace(ComponentHelper.java:869)
	at org.apache.tools.ant.ComponentHelper.getDefinition(ComponentHelper.java:308)
	at org.apache.tools.ant.ComponentHelper.getComponentClass(ComponentHelper.java:298)
	at org.apache.tools.ant.ComponentHelper.createNewTask(ComponentHelper.java:547)
	at org.apache.tools.ant.ComponentHelper.createTask(ComponentHelper.java:524)
	at org.apache.tools.ant.Project.createTask(Project.java:1179)
	at org.eclipse.jgit.ant.tasks.GitAddTaskTest.before(GitAddTaskTest.java:70)
	at