How to include current date in a generated Javadoc?

Asked

Viewed 115 times

2

I’m using jAutodoc to automatically generate Javadocs, here 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 to include the current date in the generated Javadoc ?

I tried to:

 * @date    new java.util.Date();

However, this had no effect.

Thanks in advance !

1 answer

4


You can configure this template/template in the Eclipse preferences.

  1. Go to Windows/Preferences.
  2. In the Editor -> Templates option, add a new one and in the "Template/Pattern" section you inform ${date}${time}.

Research source

Browser other questions tagged

You are not signed in. Login or sign up in order to post.