]> source.dussan.org Git - jgit.git/commit
Fix tests for Ant task "git-clone" 97/5497/1
authorMatthias Sohn <matthias.sohn@sap.com>
Sun, 1 Apr 2012 23:20:31 +0000 (01:20 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Sun, 1 Apr 2012 23:20:31 +0000 (01:20 +0200)
commitee90d6afba1946345386efcee8b14a017e0eb01c
tree8c09fbef50df507118b988f22226ff82468def3f
parent6189a68d1d48e38779380cea81efa530405ff762
Fix tests for Ant task "git-clone"

If project.init() isn't called GitCloneTaskTest fails when started from
Eclipse, according to [1] calling init() is necessary to properly
initialize the Ant project programmatically.

Always set the destination folder in order to ensure that all test
resources are created under the project's target folder and do not
pollute the project's source tree with test data.

[1]
http://ant.1045680.n5.nabble.com/project-createTask-not-working-with-ant-1-8-2-td3385716.html

Change-Id: Icbeb62680b018a92673faa58828b5e850564c7a8
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.ant.test/src/org/eclipse/jgit/ant/tasks/GitCloneTaskTest.java