From: Konstantin Priblouda <kpriblouda@ya...> - 2009-06-24 14:31:20
--- On Wed, 6/24/09, John Leonard <jleonard.20081@...> wrote:
> From: John Leonard <jleonard.20081@...>
> Subject: [Xdoclet-user] xml generation.
> To: xdoclet-user@...
> Date: Wednesday, June 24, 2009, 5:19 PM
> with xdoclet I was able to create
> *.xdt file and pass it to
> xdoclet.DocletTask class which would generate *.xsd file.
> How can do
> this in xdoclet2? Do I need to write my own plugin?
Usually it's best solution, and with XD2 it's way easier than with XD1
Creating new plugin will allow you to create your own tags,
which are self validating and documenting.
Since you like to produce xml, best choice ( as sample ) will be
some jelly based plugin ( nobody prohibits you from using velocity
one though )
Just look how this is done in (for example) web plugin.
If you are using maven, it's just deriving from existing project,
and providing interfaces for tags, jelly/velocity templates and
plugin class itself.
> Thank you,
> John L.
----[ Konstantin Pribluda http://www.pribluda.de ]----------------
JTec quality components: http://www.pribluda.de/projects/
Get latest updates about Open Source Projects, Conferences and News.