I can't get project-specific licenses to work in my Netbeans File Templates. I have a template called "PHP File". The contents look like this...
<?php
<#assign licenseFirst = "/*">
<#assign licensePrefix = " * ">
<#assign licenseLast = " */">
<#include "../Licenses/license-${project.license}.txt">
?>
I also added a file template to the "Licenses" directory named "license-test.txt". It contains the license info for this particular project.
I have modified my "properties.project" file to assign a specific license (called "test") for this project. My "project.properties" file looks like this...
include.path=${php.global.include.path}
source.encoding=UTF-8
src.dir=../../../../../wamp/www/test-project
tags.asp=false
tags.short=true
web.root=.
project.license=test
When I create a new page based on the "PHP File" template, it gives me the default license, instead of the "license-test.php" license. If I modify the "PHP File" file template, and change line 5 to:
<#include "../Licenses/license-test.txt">
...everything works fine. So I know the license is working. There must be an error in either the assigning or calling of the "project.license" variable. Any ideas?
I am using Netbeans 6.7.1 (PHP) and I have been following this tutorial to get this to work. Also, in case it matters, I am storing my Netbeans project data in a location outside of the actual website file structure.