zoukankan      html  css  js  c++  java
  • StatSVN:统计代码行数工具

    It takes three steps to create reports for a Subversion module:

    1. Check out a copy of the module from Subversion
    2. Create a log file for the module
    3. Run StatSVN

    Checking out a module from Subversion

    You can skip this step if you have already checked out a working copy, whether with the command line utility as shown here or a graphical interface, such as TortoiseSVN, but make sure to run an "svn update" on your working copy or you may not see all your log entries (see this section of the SVN book for more information). Typically, the command looks like this (assuming modulename to be the name of the module):

    svn co svn://server/repo/trunk/modulename

    Creating an SVN log file

    Change into the directory where you have checked out the module, and use the svn log command to create a log file.

    cd checkout_dir

    svn log -v --xml > logfile.log


    Do not forget the -v option otherwise it will not work.

    Running StatSVN

    StatSVN is run using the command java -jar statsvn.jar. It takes a bare minimum of two command line parameters:

    java -jar statsvn.jar <logfile> <checked-out-module>


    For example:

    java -jar /path/to/statsvn.jar /path/to/module/logfile.log /path/to/module


    This command creates the reports in the current user directory. You can now point your browser to the file index.html, which is the table of contents of the report.

    Work for fun,Live for love!
  • 相关阅读:
    Oauth2.0认证原理
    互联网开放平台API安全设计
    API接口幂等性框架设计
    防盗链&CSRF&API接口幂等性设计
    ElasticSearch高可用集群环境搭建和分片原理
    SpringBoot2.0+ElasticSearch网盘搜索实现
    Elasticsearch6.4.3文档的映射
    中文分词器
    C# 插件
    JavaScript 网址
  • 原文地址:https://www.cnblogs.com/allenblogs/p/1923121.html
Copyright © 2011-2022 走看看