Blog do projektu Open Source JavaHotel

sobota, 13 lutego 2010

Custom license in NetBeans

Well known beginning for all java files created in NetBeans framework.
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
How to get rid of it and have your own license without changing all templates for every java file types ?
  1. Open "Tools" - "Template" - "License" and decide if any predefined license fits your purpose.
  2. If no then create your own with name like: license-{name}.txt  and add to license list.
  3. Open build.properties file and add line (without license- prefix):  project.license={name}
You can also modify:

    /**
     *
     * @author loginname
    */
Open: "Tools" - "Template" - "User Configuration Properties" and modify line:
user=/your name/
 

Brak komentarzy:

Prześlij komentarz