StatSVN bajo Ubuntu [SOLUCIONADO]

07 June 2010 – 14:00

StatSVN es una herramienta genial que nos permite obtener estadísticas de uso, commits, usuarios, etc… de un sistema SVN.

Peeeero si seguimos los pasos que te vienen en su web bajo ubuntu (testeado bajo 9.10 y 10.4) obtendremos un precioso error como el que sigue:

Failed to load Main-Class manifest attribute from /usr/share/java/statsvn

Así que los pasos correctos son los siguientes, suponiendo que nuestro proyecto se llama turmana y se aloja en https://forja.rediris.es/svn/turmana.

Instalamos statsvn

boheme@boheme-laptop:~$ sudo apt-get install statsvn

Hacemos checkout de la última versión del repositorio (mejor en un directorio aparte)

boheme@boheme-laptop:~/turmana$ svn co https://forja.rediris.es/svn/turmana

Creamos el log que luego servirá de entrada a statsvn

boheme@boheme-laptop:~/turmana$ svn log -v --xml > logfile.log

y ejecutamos statsvn (mejor en un directorio aparte) indicándole la ruta al logfile.log y al directorio donde hicimos el checkout

boheme@boheme-laptop:~/turmana-stats$ /usr/bin/statsvn ../turmana/logfile.log \ 
>    ../turmana

Publicado originalmente en mi antiguo blog, 3oheme.com, y recuperado de archive.org.

This is the personal website of Ignacio Palomo Duarte, Product Manager. If you're looking for my portfolio and more information just have a look at the homepage, and if you liked this article maybe you can share it on Bluesky.