I suggest you make a page on the Wiki in the "Contributed Code" section and
include your example.
WILL
----- Original Message -----
From: "Daigo Kobayashi" <[EMAIL PROTECTED]>
To: "Velocity Developers List" <[email protected]>
Sent: Saturday, November 05, 2005 10:29 PM
Subject: Re: merge directive
Hi Will,
Thank you for replay my message.
I'm not quite sure I understand how this will be used. Can you give a
specific example? Is "foo.xml" a source file or an output file?
"foo.xml" is source file.
I create small example. How do I send this sample?(I create example
using eclipse.)
Also, have you looked at Anakia? I'm wondering if that serves some of
the same purpose. It parses an XML file and lets you generate a
Velocity document based on that.
Actually it serves some of the same purpose. However, #merge directive
aimed mainly incremental code generation. I think anakia is aimed
static code generation such as HTML, static structured XML and so on.
When we use code generator, if we don't have any way to merge
implemented code, we have to use generation gap pattern or hook
operation pattern to avoid artifact lost. But some case (for example
using xdoclet or annotation) generation gap and hook operation pattern
is useless. Also both pattern generate too many classes. Therefore I
create merge directive.
Best Regards,
Daigo Kobayashi
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]