-
Notifications
You must be signed in to change notification settings - Fork 1
/
sample.xml
77 lines (60 loc) · 2.33 KB
/
sample.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="sample">
<taskdef resource="org/oecd/ant/git/antlib.xml">
<classpath>
<pathelement path="${basedir}\target\classes" />
<pathelement location="C:\Users\Mereth\.m2\repository\org\eclipse\jgit\org.eclipse.jgit\4.1.0.201509280440-r\org.eclipse.jgit-4.1.0.201509280440-r.jar" />
<pathelement location="C:\Users\Mereth\.m2\repository\com\jcraft\jsch\0.1.53\jsch-0.1.53.jar" />
<pathelement location="C:\Users\Mereth\.m2\repository\org\slf4j\slf4j-api\1.7.12\slf4j-api-1.7.12.jar" />
<pathelement location="C:\Users\Mereth\.m2\repository\org\slf4j\slf4j-nop\1.7.12\slf4j-nop-1.7.12.jar" />
</classpath>
</taskdef>
<property name="remote" value="https://github.com/mereth/git-ant-tasks.git" />
<property name="repo" value="K:\Tmp\testtask" />
<target name="test">
<!--
<gitdiff repo="${repo}" cached="true" oldrev="HEAD^"/>
<gitdiff repo="${repo}" output="test.diff"/>
<gitextract repo="${repo}" rev="HEAD^^" srcfile="files/book-thumbnails.xml" dstfile="book-thumbnails.xml"/>
-->
</target>
<target name="test-config">
<gitconfig repo="${repo}" section="http" name="sslVerify" property="http.sslVerify">
</gitconfig>
<echo message="http.sslVerify: ${http.sslVerify}" />
</target>
<target name="test-clone">
<delete dir="${repo}">
</delete>
<gitclone repo="${repo}" uri="${remote}" branch="master" />
</target>
<target name="test-status">
<gitstatus repo="${repo}" modified="testid" isclean="pwet" />
<pathconvert property="dd">
<resources refid="testid" />
</pathconvert>
<echo message="${dd}" />
</target>
<target name="test-add">
<gitadd repo="${repo}" update="true" />
</target>
<target name="test-commit">
<gitcommit repo="${repo}" all="true" message="kikoo" revproperty="p-rev-commit" />
<echo message="${p-rev-commit}" />
</target>
<target name="test-push">
<gitpush repo="${repo}" />
</target>
<target name="test-ref">
<gitref repo="${repo}" name="HEAD" property="last" />
<echo message="${last}" />
<sequential>
<local name="last" />
<gitref repo="${repo}" name="HEAD" property="last" length="8" />
<echo message="${last}" />
</sequential>
</target>
<target name="test-pull">
<gitpull repo="${repo}" />
</target>
</project>