File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes NetBeans: Adding copy right information Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "NetBeans: Adding copy right information" Watch "NetBeans: Adding copy right information" New topic

NetBeans: Adding copy right information

gautham kasinath
Ranch Hand

Joined: Dec 01, 2000
Posts: 583

What I am trying to do is a very trivial task. I have to add the copy rights notice (GNU) that my company issues to all the Java sources that I have. I use the netBeans and I have spent a day and a half in trying to figure out HOW I can include the same into NetBeans, so that existing classes can have the copy right notice injected on the top and the new classes that I may create (right click -> Java Class) have the same.

Any clues?! Google failed, netbeans mail arhive failed in solving my problem..


"In the country of the blind, the one eyed man is the King"
Gautham Kasinath CV at :
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
For new classes you can probably just change the templates used to create them.
I don't know how it's done in NB but in Eclipse that's an almost trivial task.

For existing classes I think you'd best write a small program that does it for you as otherwise you're stuck with a large copy-paste action.

I agree. Here's the link:
subject: NetBeans: Adding copy right information
It's not a secret anymore!