Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Include current date into generated JavaDoc

Tags:

java

jautodoc

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!

like image 827
Edson Cezar Avatar asked Apr 17 '26 18:04

Edson Cezar


1 Answers

You must use:

${date} -> for the date
${time} -> for the time

Regards, Alain

like image 153
adouang Avatar answered Apr 20 '26 08:04

adouang



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!