Re: use of Velocity #include

Eivind Waaler <[email protected]>
Newsgroups gmane.comp.java.ejb.middlegen.user
Message-ID <[email protected]>
In the plugin definition in build.xml you set a mergedir where the include
file is found.

In our templates we use #parse (#include works too?):
#parse("copyright.txt")

Regards
.eivind

On Wed, 10 Mar 2004, Matthew Hegarty wrote:

>
> Hello
>
> I am having trouble getting the Velocity 'include' directive to work alongside Middlegen, eg:
>
> I have the directive:
>
> #include( "copyright.txt" )
>
> At the top of my vm file, but am not seeing any data from this included file in the generated file, after Middlegen is run.
>
> I can't find anything helpful in either the Middlegen or Velocity documentation to do with this.
>
> Has anyone managed to get this working?  If so, I would appreciate your advice.
>
> Matt
>
>
>
>
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> middlegen-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/middlegen-user
>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.