2

I'm trying to put Java comments and I have used for that Java doc tamplate and STS tool : In STS I'm using that configuration in Java doc tamplate:-

/**
 * Description: 
 * Name of Project: ${project_name}
 * Created on: ${date} ${time}
 * Modified on: ${date} ${time}
 * @author ${user}
 * Version: 1.0
 * ${tags}
 */

Which displays the following on my Java file.

/**
 * Description: 
 * Name of Project: CabFMS
 * Created on: Oct 29, 2012 4:05:38 PM
 * Modified on: Oct 29, 2012 4:05:38 PM
 * @author tgupta1
 * Version: 1.0
 */

Here, I want to update the version dynamically just like date, time, user, project_name etc.

Please suggest me, is there a way for that or we need to do it manually?

krock
  • 28,904
  • 13
  • 79
  • 85
Tarun Gupta
  • 1,232
  • 2
  • 13
  • 26

1 Answers1

0

I think the JAutoDoc plugin might help you regenerating all the headers of your source files (if that what you are searching for).

Btw including created/modified/authors can be done easily and automatically with any source versioning systems like SVN, Git or Mercurial. However, their usage is highly discouraged (it simply cause too much noise when diffing).

rlegendi
  • 10,466
  • 3
  • 38
  • 50