1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
<?xml version="1.0"?>
<project name="gitDescribeTest" default="invalid">
<import file="GitTestFunction.xml"/>
<target name="invalid">
<fail>This file should only be run via a testcase</fail>
</target>
<target name="gitDescribeTask">
<!-- obtain test repo -->
<gitclone
gitPath="${git-path}"
singleBranch="true"
repository="${repo.dir.resolved}"
targetPath="${tmp.dir.resolved}" />
<gittag gitPath="${git-path}" repository="${tmp.dir.resolved}" name="ver1.0" />
<gitdescribe gitPath="${git-path}" repository="${tmp.dir.resolved}" tags="true"/>
</target>
</project>
|