creating templates for netbeans 6.7 plugins
paweł kamiński <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
hej all,
I have a problem with template's variable replacement in template for one of
the netbeans plugin. I posted similar question on netbeans forum but I have
no respond. so the problem is as follow
my erl template looks like this
*Code:
*<#assign licensePrefix = "%%%">
<#include "../Licenses/license-${project.license}.txt">
%%%-------------------------------------------------------------------
%%% File : ${nameAndExt}
%%% Author : ${user}
%%% Description :
%%%
%%% Created : ${date} ${time}
%%%-------------------------------------------------------------------
-module(${name}).
..
and is not working Im getting
*Code:
*<#assign licensePrefix = "%%%">
<#include "../Licenses/license-${project.license}.txt">
%%%-------------------------------------------------------------------
%%% File : ${nameAndExt}
%%% Author : ${user}
%%% Description :
%%%
%%% Created : ${date} ${time}
%%%-------------------------------------------------------------------
-module(${name}).
-behaviour(gen_server).
%% API
-export([start_link/0]).
while java template looks like
*Code:
*<#assign licensePrefix = "//">
<#include "../Licenses/license-${project.license}.txt">
/**-------------------------------------------------------------------
*** File : ${nameAndExt}
*** Author : ${user}
*** Description :
***
*** Created : ${date} ${time}
***-------------------------------------------------------------------*/
<#if package?? && package != "">
package ${package};
</#if>
public class ${name} {
}
and its work just fine
*Code:
*//mylicense*
* /**-------------------------------------------------------------------
*** File : Fg.java
*** Author : paweł
*** Description :
***
*** Created : 2009-08-25 20:10:37
***-------------------------------------------------------------------*/
package sample;
public class Fg {
}
so what is going on? should I add some config file to my plugin dir? or
maybe instruct netbeans to process template with freemarker
thanks for any help
pozdrawiam
Paweł Kamiński
[email protected]
[email protected]
______________________
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user