forked from phpundercontrol/phpUnderControl-UNMAINTAINED
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodifications.xml
More file actions
56 lines (53 loc) · 2.59 KB
/
modifications.xml
File metadata and controls
56 lines (53 loc) · 2.59 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="diffs" default="run">
<path id="build.classpath">
<pathelement location="/opt/cruisecontrol/apache-ant-1.7.0/lib/xmltask.jar"/>
</path>
<taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask" classpathref="build.classpath" />
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="/opt/cruisecontrol/apache-ant-1.7.0/lib/ant-contrib-1.0b3.jar"/>
</classpath>
</taskdef>
<target name="run">
<exec executable="mkdir">
<arg line="${logdir}/${cctimestamp}/diff"/>
</exec>
<xmltask source="${logdir}/${logfile}">
<call path="/cruisecontrol/modifications/modification">
<param name="file" path="file/filename/text()"/>
<param name="rev" path="file/revision/text()"/>
<param name="action" path="file/@action"/>
<actions>
<exec executable="mkdir">
<arg line="-p ${logdir}/${cctimestamp}/diff@{file}"/>
</exec>
<exec executable="rmdir">
<arg line="${logdir}/${cctimestamp}/diff@{file}"/>
</exec>
<if>
<equals arg1="@{action}" arg2="added" />
<then>
<exec executable="svn" output="${logdir}/${cctimestamp}/diff@{file}">
<arg line="cat -r@{rev} ${svn}@{file}"/>
</exec>
<exec executable="pygmentize">
<arg line="-f html -O full,style=trac -o ${logdir}/${cctimestamp}/diff@{file}.r@{rev}.html
${logdir}/${cctimestamp}/diff@{file}"/>
</exec>
</then>
<else>
<exec executable="svn" output="${logdir}/${cctimestamp}/diff@{file}.r@{rev}.diff">
<arg line="diff -c@{rev} ${svn}@{file}"/>
</exec>
<exec executable="pygmentize">
<arg line="-f html -l diff -O full,style=trac -o ${logdir}/${cctimestamp}/diff@{file}.r@{rev}.html
${logdir}/${cctimestamp}/diff@{file}.r@{rev}.diff"/>
</exec>
</else>
</if>
</actions>
</call>
</xmltask>
</target>
</project>