Hi all,
I've wrote two simple plugins for my own use and I would like to
contribute to xdoclet-plugins if you accept. Both complement the
struts plugin.
Critics are welcome to improve the plugins anyway ;-)
1) ApplicationResources.properties: Create a property file (like
externalizer, but generates a single one). I've based this plugin as
possible as I can in externalizer plugin and I've used (copied) some
code of externalizer plugin as they are very similar.
Example
/**
* @struts.msg key="variant_message"
* msg="Standartmeldung, deutsche Sprache, Deustschland, Hessen"
* lang="de" country="DE" variant="he"
*/
produces ApplicationResources_de_DE_he.properties with the content:
variant_message=Standartmeldung, deutsche Sprache, Deustschland, Hessen
2) TILES: Generate tiles-defs.xml for tiles.
Example
/**
* @struts.tiles name="mytile" path="/mytile.jsp"
* @struts.tiles-put name="prop1" value="value1"
* @struts.tiles-put name="prop2" value="value2"
*/
produces:
<tiles-definitions>
<definition name="mytile" path="/mytile.jsp">
<put name="prop1" value="value1" />
<put name="prop2" value="value2" />
</definition>
</tiles-definitions>
--
Eduardo Franceschi
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
xdoclet-plugins-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest