Automaticly License Java Files?

The game I am developing is to be open source.



With that in mind, I'd like to apply a header containing the license information.

Does anyone know a quick way to apply a header comment across all *.java files? (I use Eclipse Ganymede if it helps any)

I imagine I'll do this once a month or so in order to apply to new files, so it would be good if it didn't repeat.



I have noticed that Maven can automaticly detect licenses for some packages, I'd like to support that, too.



I know this may not be the right place to ask this, so if you know a better place, link please?

You can configure Eclipse to generate custom defined headers when you create new files. To do this, go to Windows->Preferences->java->Code Style->Formatter and you can customize how different code templates will appear. Hope this is what you are looking for.