Embed a template in each source file in an Eclipse project?

Is there a tool, option, or script to insert a custom template into the header of every existing source file in an Eclipse project? `


Some background information

I recently posted a small application written for a university assignment. Initially, the source files did not require any explicit license or author information. But now I am releasing code that would like to put this information in the header of each Java source file.

I know that Eclipse has the ability to insert a custom template into each new file, and I will do it from now on. But there are about 60 existing .java files in which I want to place this header. Although this is not a huge amount, I really do not like to repeat the same cut and paste operation 60 times if there is an easier way to do this.


PS I could not come up with any better tags for this question, suggestions are welcome.

+3
source share
1 answer

You can check out JAutodoc at sourceforge. http://jautodoc.sourceforge.net/

In particular, check out the section entitled File Header

Hope this helps.

+4

Source: https://habr.com/ru/post/1726485/


All Articles