Re: [FMPP] How to include java code into freemarker's data model in fmpp?
Brought to you by:
ddekany
|
From: Daniel D. <dd...@fr...> - 2010-01-05 13:12:05
|
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 <dd...@fr...> wrote: >> 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 <dd...@fr...> wrote: >>>> 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 files >>>>>> in the freemarker classpath? I need it because I want to use some of >>>>>> the functions written with java from freemarker templates and because >>>>>> 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=138 >>>> >>>> Sorry, I mean this: >>>> http://article.gmane.org/gmane.comp.text.fmpp/135 >>>> >>>> >>>> -- >>>> Best regards, >>>> Daniel 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 >>>> fmp...@li... >>>> 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 >>> fmp...@li... >>> https://lists.sourceforge.net/lists/listinfo/fmpp-open >>> >> >> -- >> Best regards, >> Daniel 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 >> fmp...@li... >> 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 > fmp...@li... > https://lists.sourceforge.net/lists/listinfo/fmpp-open > -- Best regards, Daniel Dekany |