Friday, December 28, 2007

How to set the Default License in Netbeans 6.0

To set the default license on Netbeans 6.0 for ALL projects go to Tools --> Templates and expand the Licenses tree. Select the Default License and Open in Editor.


You may then modify the default license to meet your needs.

<#if licenseFirst??>
${licenseFirst}

${licensePrefix}To change this template, choose Tools | Templates
${licensePrefix}and open the template in the editor.
<#if licenseLast??>
${licenseLast}

Note: You must add ${licensePrefix} to each line you wish to add.

<#if licenseFirst??>
${licenseFirst}

${licensePrefix} Copyright ${date?date?string("yyyy")} ${user}.
<#if licenseLast??>
${licenseLast}

This version sets the copyright to the current date and the name to the ${user} property. If you need to modify the ${user} property please see How to set @author or ${user} properties in Netbeans 6.0 templates

0 comments :

Popular Posts