Re: creating templates for netbeans 6.7 plugins
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
It very much looks like the EAR template is just not treated as a
template by the NetBeans plugin (or by the NetBeans i-dont-know-what).
That is, it wasn't passed to FreeMarker at all... means we can't help.
Sunday, September 6, 2009, 8:11:41 PM, paweł kamiński wrote:
> 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]
> ______________________
--
Best regards,
Daniel Dekany
------------------------------------------------------------------------------
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