zoukankan      html  css  js  c++  java
  • svn在源代码中嵌入作者或版本等信息

    svn在源代码中嵌入作者或版本等信息
    以前在dreamarts时觉得特别好用。
    能知道文件名是哪一个
    调试的时候找的话,就方便多了

    目前支持5个关键字:Date(修改时间)、Revision(版本)、Author(提交者)、HeadURL(库路径)、Id(前面4个的组合)

    必须在eclipse把项目整体给设置一下

    参考:http://hi.baidu.com/gevilrror/bl ... 87f016a18bb791.html

    However keyword substitution is not activated by default from within Eclipse and its SVN module titled Subclipse.  

    Eclipse is the best IDE (Integrated Development Environment) that I’ve ever used (but it won’t be explained here).  

    These are the steps to activate the svn-keyword-substitution feature in Eclipse:

    • Install Subclipse into your Eclipse application (you’ve probably already done this if you’re reading this post!)
    • Right-mouse-click on your project folder, and choose Team => Set Property from the popup menu
    • Enter the property name:  svn:keywords
    • Enter the text property:  Author Date Id Revision HeadURL
    • Click the  Set property recursively checkbox
    • OK

    Now keywords are substituted when you commit a file in SVN, just like they were in CVS.  Also, you can shorten Revision to Rev and HeadURL to URL.

  • 相关阅读:
    诸侯安置
    可可西里
    直线交点
    切割多边形
    ACM挑战程序设计竞赛1.1抽签
    朝鲜战争:轰炸大小和岛
    星际争霸II 战斗问题
    乒乓球
    瑞士轮
    NOIP 2010 普及组解题报告
  • 原文地址:https://www.cnblogs.com/johnsonshu/p/2568503.html
Copyright © 2011-2022 走看看