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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值