Jalopy will do this. It allows searching each Java file for a header using some query string you define. If not there, it adds a header of your choosing to the file. It will also do the same thing with a trailer, at the end of the file.
Jalopy will also reformat the files, indenting and such. It will reorder the fields and methods if you choose. There are a lot of fancy reformattings it will do. There is a part that will check for problems in the code. I haven't used this. (I use Checkstyle for this.) I do it inside Eclipse since I have the Jalopy eclipse-plugin installed. You just pick the parent folder and choose to reformat with Jalopy. It will do all the java files below that in the varioius subdirectories. I'm aware of a way to do it from ant so you could do it inside the antrun maven plugin. There may be other ways. -- Thanks On 11/21/06, emerson cargnin <[EMAIL PROTECTED]> wrote:
I just got it to work using a licence plugin for intelliJ emerson On 21/11/06, Wim Deblauwe <[EMAIL PROTECTED]> wrote: > Hi, > > does anybody know of a Maven plugin (or some other tool) that makes sure the > approperiate header for a certain license is present in every java file? I > could ofcourse manually add the notice to every file, but this seems like > such a common thing that somebody must have made something already. > > regards, > > Wim > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- -- Lee Meador Sent from gmail. My real email address is lee AT leemeador.com