Little batch file for StatSVN
StatSVN retrieves information from a Subversion repository and generates various tables and charts describing the project development. You can get the software this page:
http://www.statsvn.org/downloads.html
Inside the archive (statsvn-0.7.0.zip) you have a readme.txt and a statsvn.jar . It would've been nice to be able to run StatSVN directly so I played a bit to create this bat file:
set home=%cd%
set /p project=Project folder:
set report=report
cd /d %project%
del svn.log
svn log --xml -v > svn.log
cd /d %home%
rd /s /q %report%
java -jar statsvn.jar -output-dir %report% %project%\svn.log
%project%
del %project%\svn.log
%report%\index.html
Just create the bat file in the folder where you extracted StatSVN, run it, paste your project's folder path and wait for the magic to happen. The report will be generated in a folder named report and the report's index.html should be opened in your browser.
http://www.statsvn.org/downloads.html
Inside the archive (statsvn-0.7.0.zip) you have a readme.txt and a statsvn.jar . It would've been nice to be able to run StatSVN directly so I played a bit to create this bat file:
set home=%cd%
set /p project=Project folder:
set report=report
cd /d %project%
del svn.log
svn log --xml -v > svn.log
cd /d %home%
rd /s /q %report%
java -jar statsvn.jar -output-dir %report% %project%\svn.log
%project%
del %project%\svn.log
%report%\index.html
Just create the bat file in the folder where you extracted StatSVN, run it, paste your project's folder path and wait for the magic to happen. The report will be generated in a folder named report and the report's index.html should be opened in your browser.
Comments
Post a Comment