Take the 2-minute tour ×

I am sure I have seen this in maven but not sure how to do it in ant:

How can I get a list of commiters with their (preferably relative) amount of commits


  • Sam 80%
  • Joe 10%
  • Mike 5%
  • Phil 5%

thanks in advance

share|improve this question
The number of commits by an individual cannot be used to draw any meaningful conclusions about that individual's contribution to the project. This sort of metric only encourages people to draw meaningless (and often wrong) conclusions. –  alroc Mar 20 '13 at 12:55
@alroc I know that. Unfortunately others higher up the chain do not ;-) –  er4z0r Mar 20 '13 at 13:36
@er4z0r I hope that you can explain them that it's a bad practice that can affect whole productivity. –  bahrep Mar 20 '13 at 17:58
I will but it seems I'd rather switch to maven. –  er4z0r Mar 20 '13 at 18:11
the tooling is irrelevant. If management thinks there is anything relevant in the report, you're in for trouble. –  thekbb Mar 20 '13 at 18:59
add comment

2 Answers

This is one of this things that if you do it really well, it will still be a pile of garbage. As @alroc & @bahrep pointed out.

I work for a living too, and I understand that pointy haired bosses love a chart.

I'd use svn ant tasks to get the log (something like this, I didn't run it)

    <log path=${basedir} destFile="svn-log.xml">

I'd use the use the java task to run statsvn (something like this, I didn't run it)

<java jar="/path/to/statsvn.jar"
    <arg line="svn-log.xml ${basedir}"/>

I feel kind of bad posting an answer with pseudo-code... but really teh best advice I have is: With bosses like this, I'd recommend a healthy amount of resume polishing.

share|improve this answer
add comment

You can get that info from svn command using <exec/> or <cvs/> task.

share|improve this answer
Not really. You can collect the data which can be used as the basis for this analysis from svn log, but you still have to parse that and do the math. –  alroc Mar 20 '13 at 13:54
@alroc, I agree with you. I didn't wrote that there is no need to parse output. I just suggested that this is possibility to get that info. There is always psibility to create macro which will hide implementation. –  pepuch Mar 20 '13 at 16:08
add comment

Your Answer


