简体   繁体   中英

Include current date into generated JavaDoc

I am using jAutodoc to generate JavaDocs automatically. 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?

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} ,它将打印当前日期。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM