My favorites
▼
|
Sign in
mxunit
Unit Test Framework for ColdFusion
Project Home
Downloads
Source
Export to GitHub
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
159
attachment: patch.txt
(4.6 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
### Eclipse Workspace Patch 1.0
#P mxunit
Property changes on: buildprops
___________________________________________________________________
Modified: svn:ignore
- antrunner.properties
unames.properties
+ antrunner.properties
unames.properties
svnLog.xml
Index: buildprops/statsvn.properties
===================================================================
--- buildprops/statsvn.properties (revision 0)
+++ buildprops/statsvn.properties (revision 0)
@@ -0,0 +1,6 @@
+############################################################
+### User Details ###
+############################################################
+
+# marc.esher@gmail.com
+user.marc.esher@gmail.com.replacedBy=marc.esher
\ No newline at end of file
Property changes on: doc/statsvn
___________________________________________________________________
Added: svn:ignore
+ *
Index: lib/statsvn-0.5.0.jar
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: lib/statsvn-0.5.0.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Index: build.xml
===================================================================
--- build.xml (revision 1209)
+++ build.xml (working copy)
@@ -65,6 +65,7 @@
<property name="unames.file" value="buildprops/unames.properties" />
<property name="version.file" value="buildprops/version.properties" />
<property name="antrunner.file" value="buildprops/antrunner.properties" />
+ <property name="statsvn.file" value="buildprops/statsvn.properties" />
<property name="testmailmessage.file" value="buildprops/testresultsmail.html" />
<property name="svnserver" value="https://mxunit.googlecode.com/svn" />
@@ -72,6 +73,8 @@
<property name="mxunit.jar" value="ant/lib/mxunit-ant.jar" />
<property name="junit.out.dir.xml" value="tests/testresults" />
<property name="junit.out.dir.html" value="${junit.out.dir.xml}/html" />
+ <property name="statsvn.out.dir.html" value="doc/statsvn" />
+ <property name="svn.out.xml" value="buildprops/svnLog.xml" />
<property name="output.dir" value="${junit.out.dir.xml}/tmp" />
<property name="style.dir" value="ant/xsl/" />
@@ -82,11 +85,10 @@
<include name="**/*.jar" />
</fileset>
</path>
-
+
<taskdef name="mxunittask" classname="org.mxunit.ant.MXUnitAntTask" classpath="${mxunit.jar}" />
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="project.classpath" />
<taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="project.classpath"/>
-
</target>
@@ -277,6 +279,58 @@
</if>
</target>
+ <target name="statSVN" depends="init,svnLog" description="Generates statistics from the repository">
+ <property file="${statsvn.file}" />
+
+ <java jar="lib/statsvn-0.5.0.jar" fork="true" failonerror="true">
+ <arg value="-title" />
+ <arg value="MXUnit" />
+ <arg value="-include" />
+ <arg value="**/*.cfc;**/*.cfm;**/*.js;**/*.css;**/*.xml;**/*.properties" />
+ <arg value="-output-dir" />
+ <arg value="${statsvn.out.dir.html}" />
+ <arg value="-username" />
+ <arg value="${gc.username}" />
+ <arg value="-password" />
+ <arg value="${gc.password}" />
+ <arg value="-disable-twitter-button" />
+ <arg value="-config-file" />
+ <arg value="buildprops/statsvn.properties" />
+ <arg value="${svn.out.xml}" />
+ <arg value="${basedir}" />
+ </java>
+
+ <echo message="SVN Statistics at ${statsvn.out.dir.html}"/>
+ </target>
+
+ <target name="svnLog" depends="init">
+ <!-- Create the time stamp -->
+ <tstamp>
+ <format property="svn.log.startDate" pattern="yyyy-MM-dd" offset="-5" unit="year" />
+ <format property="svn.log.endDate" pattern="yyyy-MM-dd" offset="1" unit="day"/>
+ </tstamp>
+
+ <exec executable="svn" output="${svn.out.xml}">
+ <arg value="log"/>
+ <arg value="-v"/>
+ <arg value="--xml"/>
+ <arg value="--username"/>
+ <arg value="${gc.username}"/>
+ <arg value="--password"/>
+ <arg value="${gc.password}"/>
+ <arg value="-r"/>
+ <arg value="{${svn.log.startDate}}:{${svn.log.endDate}}"/>
+ <arg value="${basedir}"/>
+ </exec>
+
+ <!-- TODO Use this version when they get the verbose option working
+ <svn username="${gc.username}" password="${gc.password}">
+ <log path="${basedir}" destfile="${build.logs.svn}" asxml="true" recurse="true" verbose="true"/>
+ </svn>
+ -->
+
+ <echo message="SVN Log available at ${build.logs.svn}"/>
+ </target>
<target name="testSVN" depends="init">
<svn username="${gc.username}" password="${gc.password}">
Powered by
Google Project Hosting