Re: How to include java code into freemarker's data model in fmpp?

alebu <[email protected]> Tue, 5 Jan 2010 15:22:17 +0200
Newsgroups gmane.comp.text.fmpp
Message-ID <[email protected]>
Defininion of custom ant tasks in maven-ant-run plugin is described
here: http://maven.apache.org/plugins/maven-antrun-plugin/examples/customTa=
sks.html
In general, configuration looks like <taskdef name=3D"myTask"
classname=3D"com.acme.MyTask" classpathref=3D"maven.plugin.classpath"/>
This 'maven.plugin.classpath' is defined by maven and is plugin
classpath. Perhaps I need to play with it to get what I want. At least
it worth to try. Thanks for hint!


On Tue, Jan 5, 2010 at 3:11 PM, Daniel Dekany <[email protected]> wrote:
> Tuesday, January 5, 2010, 12:06:59 PM, alebu wrote:
>
>> I think that under Ant. Maven-ant-run plugin allows to pass maven
>> classpath to Ant. At least that is stated in documentation. But I
>> can't find how to specify any class path to FMPP it self from ant. And
>> that is the problem.
>
> How did you define the fmpp task? Because it wouldn't work unless you
> have put it into the "Ant classpath" somehow. Can't you add your
> classes to the "Ant classpath" one the same way? (The Ant "taskdef"
> element has optional "classpath" and "classpathref" attributes, also I
> believe it supports nested "classpath" element too.)
>
>> I am thinking about possible maven FMPP plugin
>> but first I need to find some free time for it :(
>
>> On Tue, Jan 5, 2010 at 12:42 PM, Daniel Dekany <[email protected]> wro=
te:
>>> Tuesday, January 5, 2010, 9:47:26 AM, alebu wrote:
>>>
>>>> Thanks, I found this one be seeking discussion. Unfortunately, I am
>>>> not sure is it helpful, because I am running FMPP from Ant (actually
>>>> from maven using maven-ant-run plugin).
>>>
>>> This issue might not be FMPP-specific. Sounds like it's just about
>>> setting up the "class path" under Maven (or maybe under Ant).
>>>
>>>> So, I can't manipulate
>>>> classpath of fmpp, because I even have no installation of it, FMPP
>>>> code comes from maven repository. During the week, I will try to play
>>>> with it (now I am at work and have no access to code where I want to
>>>> apply such approach. In success I will write in this discussion.
>>>>
>>>> On Tue, Jan 5, 2010 at 10:41 AM, Daniel Dekany <[email protected]> w=
rote:
>>>>> Monday, January 4, 2010, 11:31:27 PM, Daniel Dekany wrote:
>>>>>
>>>>>> Monday, January 4, 2010, 9:20:18 PM, alebu wrote:
>>>>>>
>>>>>>> Hi all,
>>>>>>> How can I specify FMPP to include some compiled java code or jar fi=
les
>>>>>>> in the freemarker classpath? I need it because I want to use some of
>>>>>>> the functions written with java from freemarker templates and becau=
se
>>>>>>> FMPP instanciates freemarker instance, I can't affect a classpath it
>>>>>>> passes to it.
>>>>>>
>>>>>> This may helps:
>>>>>> http://thread.gmane.org/gmane.comp.text.fmpp/133/focus=3D138
>>>>>
>>>>> Sorry, I mean this:
>>>>> http://article.gmane.org/gmane.comp.text.fmpp/135
>>>>>
>>>>>
>>>>> --
>>>>> Best regards,
>>>>> =A0Daniel Dekany
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------=
---------
>>>>> This SF.Net email is sponsored by the Verizon Developer Community
>>>>> Take advantage of Verizon's best-in-class app development support
>>>>> A streamlined, 14 day to market process makes app distribution fast a=
nd easy
>>>>> Join now and get one step closer to millions of Verizon customers
>>>>> http://p.sf.net/sfu/verizon-dev2dev
>>>>> _______________________________________________
>>>>> fmpp-open mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/fmpp-open
>>>>>
>>>>
>>>> ----------------------------------------------------------------------=
--------
>>>> This SF.Net email is sponsored by the Verizon Developer Community
>>>> Take advantage of Verizon's best-in-class app development support
>>>> A streamlined, 14 day to market process makes app distribution fast an=
d easy
>>>> Join now and get one step closer to millions of Verizon customers
>>>> http://p.sf.net/sfu/verizon-dev2dev
>>>> _______________________________________________
>>>> fmpp-open mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/fmpp-open
>>>>
>>>
>>> --
>>> Best regards,
>>> =A0Daniel Dekany
>>>
>>>
>>> -----------------------------------------------------------------------=
-------
>>> This SF.Net email is sponsored by the Verizon Developer Community
>>> Take advantage of Verizon's best-in-class app development support
>>> A streamlined, 14 day to market process makes app distribution fast and=
 easy
>>> Join now and get one step closer to millions of Verizon customers
>>> http://p.sf.net/sfu/verizon-dev2dev
>>> _______________________________________________
>>> fmpp-open mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/fmpp-open
>>>
>>
>> ------------------------------------------------------------------------=
------
>> This SF.Net email is sponsored by the Verizon Developer Community
>> Take advantage of Verizon's best-in-class app development support
>> A streamlined, 14 day to market process makes app distribution fast and =
easy
>> Join now and get one step closer to millions of Verizon customers
>> http://p.sf.net/sfu/verizon-dev2dev
>> _______________________________________________
>> fmpp-open mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/fmpp-open
>>
>
> --
> Best regards,
> =A0Daniel Dekany
>
>
> -------------------------------------------------------------------------=
-----
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and e=
asy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> fmpp-open mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fmpp-open
>

---------------------------------------------------------------------------=
---
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev =