1.下载并安装SVN统计工具StatSVN

1)下载地址:http://www.statsvn.org/downloads.html

2)解压压缩包,到一个目录,如E:\statsvn-0.7.0;


2.checkout 工作目录

从SVN服务器上checkout最新版本的项目文件,使用CMD,cd E:\statsvn-0.7.0,然后运行命令:svn co https://172.23.1.80/svn/bookAirWorkspace/project/point(svn上面的项目路径),这样项目的最新版本就load到E:\statsvn-0.7.0的目录下面;


3.生成log文件

导出SVN日志文件svn.log,使用命令:svn log  -v --xml E:\statsvn-0.7.0\point > E:\statsvn-0.7.0\point\svn.log;


4.使用StatSVN统计SVN中的代码量

复杂统计指令:

java -jar statsvn.jar E:\statsvn-0.7.0\point\svn.log E:\statsvn-0.7.0\point -include **/*.java:**/*.jsp:**/*.js:**/*.css:**/*.xml -exclude **/js/jquery-1.6.2.min.js

5.查看统计结果

等待一段时间,E:\statsvn-0.7.0目录下就会生成大量的统计文件,打开index.html即可进行查看。

StatSVN统计SVN服务器某项目的代码量

如果你是湖南的 欢迎加入 湖南人在深圳-Java群:557651502






相关文章:

  • 2022-01-20
  • 2022-01-17
  • 2021-09-22
  • 2022-01-17
  • 2021-10-20
  • 2021-12-09
  • 2021-12-18
猜你喜欢
  • 2022-03-05
  • 2022-12-23
  • 2021-11-22
  • 2021-09-08
  • 2021-12-09
相关资源
相似解决方案