[英]Include current date into generated JavaDoc
I am using jAutodoc to generate JavaDocs automatically. 我正在使用jAutodoc自动生成JavaDocs。 Here is an example: 这是一个例子:
/**
## type: class|interface|enum
* The ${e.getType().fu()} ${e}.
*
*
* @author Edson
* @version 1.0.0
* @date 11/09/2015
*
*/
My question is, how can I include the current date into the generated JavaDoc comment? 我的问题是,如何将当前日期包含在生成的JavaDoc注释中?
I tried: 我试过了:
* @date new java.util.Date();
However, it has no effect. 但是,它没有任何效果。
Thanks in advance! 提前致谢!
You must use: 你必须使用:
${date} -> for the date
${time} -> for the time
Regards, Alain 此致,阿兰
如果您使用${date}
,它将打印当前日期。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.