Re: Apply license to all java files?

2006-11-22 Thread emerson cargnin

checkstyle, as its name says, just check...

On 21/11/06, Alexandre Russel [EMAIL PROTECTED] wrote:

It is a checkstyle feature. It is probably possible to do it with this plugin
alex

On Tuesday 21 November 2006 12:16, Wim Deblauwe 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]



Re: Apply license to all java files?

2006-11-21 Thread Alexandre Russel
It is a checkstyle feature. It is probably possible to do it with this plugin
alex

On Tuesday 21 November 2006 12:16, Wim Deblauwe 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


pgptgIWPOtgTx.pgp
Description: PGP signature


Apply license to all java files?

2006-11-21 Thread Wim Deblauwe

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


Re: Apply license to all java files?

2006-11-21 Thread Lee Meador

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


Re: Apply license to all java files?

2006-11-21 Thread Wim Deblauwe

Thank you for the pointer to the intellij plugin. It is what I needed!

regards,

Wim

2006/11/21, Wayne Fay [EMAIL PROTECTED]:


This was recently under discussion on the Maven Dev list -- the
subject is Plugin license injection. A plugin might be in the works
(unsure) but they also suggested the IntelliJ copyright plugin.

Wayne

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]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]