• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

NetBeans: Adding copy right information

 
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
What are your superhero powers? Go ahead and try them on this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic