XDoclet Merging


Fortunately, there is one way to handle the static generation of the code. Looking at the previous listing, you will see tags such as the following:

 <XDtMerge:merge file="local-custom.xdt">    </XDtMerge:merge> 

These tags represent merge points where the code generator will try to find the specified file, pull in all of the code verbatim from the file, and place it in the resulting source code.

To use the merge points, just place the code you want to have merged into the specified file. There are numerous merge points throughout the XDoclet template in order to provide a high level of developer customization of the resulting source code.




Professional Java Tools for Extreme Programming
Professional Java Tools for Extreme Programming: Ant, XDoclet, JUnit, Cactus, and Maven (Programmer to Programmer)
ISBN: 0764556177
EAN: 2147483647
Year: 2003
Pages: 228

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net