日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > java >内容正文

java

java svn 版本号_eclipse中的Java文件自动根据svn版本号生成注释

發布時間:2023/12/1 java 37 豆豆
生活随笔 收集整理的這篇文章主要介紹了 java svn 版本号_eclipse中的Java文件自动根据svn版本号生成注释 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

經常在java代碼中看到以下的注釋($Rev: $Date),是不是很酷,怎么生成的呢?

/**

* A FilterChain is an object provided by the servlet container to the developer

* giving a view into the invocation chain of a filtered request for a resource. Filters

* use the FilterChain to invoke the next filter in the chain, or if the calling filter

* is the last filter in the chain, to invoke the rosource at the end of the chain.

*

* @see Filter

* @since Servlet 2.3

*

* @version $Rev: 46019 $ $Date: 2004-09-14 04:56:06 -0500 (Tue, 14 Sep 2004) $

*/

public interface FilterChain {

一、eclipse中配置:

windows-->preference

Java-->Code Style-->Code Templates

code-->new Java files

編輯它

* 更新: $$Date$$

* 作者: $$Author$$

* 版本: $$Rev$$

* ID ?:$$Id$$

二、修改svb配置文件

windows7 下 ,修改 C:/Users/your username/AppData/Roaming/Subversion 目錄下

xp下,修改C:/Documents and Settings/Administrator/Application Data/Subversion/ 目錄下

的 config文件,取消掉 “enable-auto-props = yes” 的注釋

在[auto-props]下,加入:

*.java = svn:keywords=Date Rev Id ?Author

*.txt = svn:keywords=LastChangedDate LastChangedRevision

總結

以上是生活随笔為你收集整理的java svn 版本号_eclipse中的Java文件自动根据svn版本号生成注释的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。