• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

NetBeans: Adding copy right information

 
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

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..

Cheers
G
 
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic